<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>마고자와 함께</title>
		<link>http://magoja.com/</link>
		<description>미래를 향해</description>
		<language>ko</language>
		<pubDate>Mon, 01 Feb 2010 00:01:51 +0900</pubDate>
		<generator>Tistory 1.1 (http://www.tistory.com/)</generator>
		<image>
		<title>마고자와 함께</title>
		<url><![CDATA[http://cfs4.tistory.com/upload_control/download.blog?fhandle=YmxvZzUxMTk5QGZzNC50aXN0b3J5LmNvbTovYXR0YWNoLzAvOS5qcGc%3D]]></url>
		<link>http://magoja.com/</link>
		<description>미래를 향해</description>
		</image>
		<item>
			<title>두번째 지름</title>
			<link>http://magoja.com/451</link>
			<description>&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile23.uf.tistory.com/original/113B3B124B659B1FD4D20E&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;HR4O9439[1].jpg&quot; height=&quot;341&quot; width=&quot;512&quot;/&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;아이리버 스토리&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;고민 많이 하다가 구매 결정.&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;현재 세팅 다하고 놀 준비 완료..&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
내가 쓰려는 용도에 적당한 듯 함.&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
이제 본전 뽑는일만 남음 -_-;;&lt;/div&gt;</description>
			<category>명품족</category>
			<author>마고자</author>
			<guid>http://magoja.com/451</guid>
			<comments>http://magoja.com/451#entry451comment</comments>
			<pubDate>Mon, 01 Feb 2010 00:01:43 +0900</pubDate>
		</item>
		<item>
			<title>두근두근</title>
			<link>http://magoja.com/450</link>
			<description>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;object type=&quot;application/x-shockwave-flash&quot; classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; codebase=&quot;http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0&quot; width=&quot;502&quot; height=&quot;399&quot;&gt;
	&lt;param name=&quot;movie&quot; value=&quot;http://flvs.daum.net/flvPlayer.swf?vid=jOL-GYtPJOw%24&amp;amp;pwidth=502&amp;amp;pheight=399&quot;/&gt;
	&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;/&gt;
	&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;/&gt;
	&lt;param name=&quot;bgcolor&quot; value=&quot;#000000&quot;/&gt;
	&lt;embed src=&quot;http://flvs.daum.net/flvPlayer.swf?vid=jOL-GYtPJOw%24&amp;amp;pwidth=502&amp;amp;pheight=399&quot; width=&quot;502&quot; height=&quot;399&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; type=&quot;application/x-shockwave-flash&quot; bgcolor=&quot;#000000&quot;/&gt;
&lt;/object&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
언제 봐도 가슴뛰게 하는 랜스횽아 영상.&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
올해는 많이 달리리라&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
목표는 크게 잡아야 할터&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
올해 만km정도 잡을까?&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
이제 이틀 달려서 이제 70키로 쯤 찍었네 -_-;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
자출하기 시작하면 키로수 늘리는건 금방일듯&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile24.uf.tistory.com/image/19600F214B5CFA97080B84&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;200961[1].jpg&quot; height=&quot;266&quot; width=&quot;400&quot;/&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
쫄쫄이 모드 마고자. 작년 가을 강화도에서&lt;/div&gt;</description>
			<category>자전거</category>
			<author>마고자</author>
			<guid>http://magoja.com/450</guid>
			<comments>http://magoja.com/450#entry450comment</comments>
			<pubDate>Mon, 25 Jan 2010 10:58:20 +0900</pubDate>
		</item>
		<item>
			<title>허브다이나모 SON20 - 새해 첫 지름</title>
			<link>http://magoja.com/449</link>
			<description>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile23.uf.tistory.com/image/19178A0C4B433AED807554&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;HR4O9346.JPG&quot; height=&quot;320&quot; width=&quot;480&quot;/&gt;&lt;/div&gt;새해 첫 출근날부터 질렀다. 올해도 지름에게 자유롭지 못한한해가 될듯 -_-;&lt;br /&gt;
첫빠따는 자전거 부품.. 허브다이나모 SON20.&lt;br /&gt;
쉽게 말하면 자전거용 발전기다 -_-;&lt;br /&gt;
&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile5.uf.tistory.com/image/20178A0C4B433AED81733A&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;HR4O9347.JPG&quot; height=&quot;320&quot; width=&quot;480&quot;/&gt;&lt;/div&gt;바퀴를 아직 짜기전이니까 그냥 허브만 자전거에 달아서 테스트..&lt;br /&gt;
&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile7.uf.tistory.com/image/11178A0C4B433AED8213F4&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;HR4O9351.JPG&quot; height=&quot;320&quot; width=&quot;480&quot;/&gt;&lt;/div&gt;램프도 없으니 브롬톤꺼 잠시 빌려서 연결...&lt;br /&gt;
&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile28.uf.tistory.com/image/13178A0C4B433AEE835534&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;HR4O9352.JPG&quot; height=&quot;320&quot; width=&quot;480&quot;/&gt;&lt;/div&gt;로드용 허브다이나모라 , 브롬톤용보다 확실히 크다.&lt;br /&gt;
&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile10.uf.tistory.com/image/14178A0C4B433AEE84D4C9&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;HR4O9349.JPG&quot; height=&quot;320&quot; width=&quot;480&quot;/&gt;&lt;/div&gt;손이 안보이게 돌리면 불이 들어옴!&lt;br /&gt;
&lt;br /&gt;후&lt;br /&gt;
&lt;br /&gt;이제 겟타2,겟타3만 구하면 합체가 가능...&lt;br /&gt;
&lt;br /&gt;언제산담.. ㅠㅠ... 봄이오기전까진 어떻게든..&lt;br /&gt;
&lt;/div&gt;</description>
			<category>명품족</category>
			<category>자전거</category>
			<category>지름</category>
			<category>허브다이나모</category>
			<author>마고자</author>
			<guid>http://magoja.com/449</guid>
			<comments>http://magoja.com/449#entry449comment</comments>
			<pubDate>Tue, 05 Jan 2010 22:16:42 +0900</pubDate>
		</item>
		<item>
			<title>(C++) 펑션 내부의 펑션 구현</title>
			<link>http://magoja.com/448</link>
			<description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; line-height: normal; &quot;&gt;&lt;h1 style=&quot;font-size: 18pt; &quot;&gt;펑션 내부의 펑션 구현&lt;/h1&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;Implement function inside funcion&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; text-align: right; &quot;&gt;
&lt;b&gt;2010/01/05 마고자&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
가끔 프로그래밍을 하다보면 펑션안에 가볍게 펑션을 정의하고 싶어지는 경우가 있다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
폴리건에 버택스를 추가한다던지 같은 작업을 긴 라인동안 반복하게되면 나도 모르게 좀 깔끔하게 만들고 싶어진다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
// Sample , Ogre에서 ManualObject 설정하는 경우..&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
position( 0 , 0 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
textureCoord( 0 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
colour( 1 , 1 , 1 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
position( 1 , 0 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
textureCoord( 0 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
colour( 1 , 1 , 1 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
position( 0 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
textureCoord( 0 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
colour( 1 , 1 , 1 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
....&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
이럴때 같은 인자들을 묶고 다른것들만 넣어서&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;AddVertex&lt;/b&gt;( 0 , 0 , 0 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;AddVertex&lt;/b&gt;( 1 , 0 , 0 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
....&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
이런식으로 정리하고싶어진다.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
정리하는 방법이 여러가지가 있는데 , 아에 AddVertex함수를 &amp;nbsp;원래 클래스에 추가하는 방법이 있지만 , 엔진단에서 건드리는 경우가 될수도 있고 , 보통 로컬로 간단히 작업하는 부분이기때문에 요 파일 내에서 해결하는게 좋다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
일반적인 해결 방안은 전처리기( define )을 이용하는 방법이다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;table bgcolor=&quot;#fce5cd&quot; border=&quot;0&quot; bordercolor=&quot;#000000&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; class=&quot;zeroBorder&quot; id=&quot;f7mr&quot; style=&quot;font-size: 1em; line-height: inherit; border-collapse: collapse; &quot;&gt;
&lt;tbody&gt;&lt;tr style=&quot;text-align: left; &quot;&gt;
&lt;td width=&quot;100%&quot; style=&quot;direction: inherit; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
#define&amp;nbsp;&lt;b&gt;AddVertex&lt;/b&gt;( x , y , u , v ) { \&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;position( x , y );\&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;textureCoord( u , v );\&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;colour( 1 , 1 , 1 , 1 );\&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
이걸로 정리가 가능하다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
만세&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
라고 생각하면 오산..&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p id=&quot;more448_0&quot; class=&quot;moreless_fold&quot;&gt;&lt;span style=&quot;cursor: pointer;&quot; onclick=&quot;toggleMoreLess(this, &#039;448_0&#039;,&#039;더보기&#039;,&#039;접기&#039;); return false;&quot;&gt;더보기&lt;/span&gt;&lt;/p&gt;&lt;div id=&quot;content448_0&quot; class=&quot;moreless_content&quot; style=&quot;display: none;&quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot; more=&quot;뻘짓한 내용 자세히 보기...&quot; less=&quot;less...&quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
개인적으로&amp;nbsp;&lt;b&gt;define&lt;/b&gt;을 싫어한다. 디버그할때 구체적인 에러위치 파악하기가 어렵고 , 특히 이런 define을 이용한 펑션처럼 구현하는걸 꺼린다. 쓸수있다면&amp;nbsp;&lt;b&gt;inline&lt;/b&gt;을 쓰고 싶다.&lt;/div&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
inline void&amp;nbsp;&lt;b&gt;AddVertex&lt;/b&gt;( float x , float y , float u , float v )&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;position( x , y );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;textureCoord( u , v );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;colour( 1 , 1 , 1 , 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
오 아름답다. 하지만 큰 문제가 있다. 컴파일하면 에러가난다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&#039;AddVertex&#039; :&amp;nbsp;&lt;b&gt;local function definitions are illegal&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
C++ 에서 펑션 내부에 펑션 정의를 허용하지 않는다. 왜 인라인도 안되냐고.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
결국 이 인라인 펑션을 글로벌로 빼야하는데 , 어차피 일부분에만 사용하는 펑션을 글로벌로 빼는 것이 영 탐탁치 않다. 어떻게든 안에서 해결하고 싶다.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Try One&lt;/h3&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
핵심 아이디어는 펑션 내부의 함수 선언은 불가지만 스트럭쳐나 클래스 선언은 허용된다는 점이다. 즉 , 스트럭쳐를 선언하고 그 내부에 펑션을 만들어서 사용하는것이 가능하다는 소리다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
코드의 간편화를 위해 만들고 싶은 펑션을 아래걸로 생각하겠다.&lt;/div&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
void&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;( int n )&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf( &quot;%d\n&quot; , n );&lt;br /&gt;
}&lt;/div&gt;
&lt;/blockquote&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
클래스의 맴버 펑션으로 구현을 우선 해보면&lt;/div&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;void Do( int n ) { printf( &quot;%d\n&quot; , n ); }&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;/blockquote&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
대충 이렇게 구현이 될텐데..&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
사용법은 2가지다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;Function&lt;/b&gt;&amp;nbsp;fun;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
fun.Do( 1 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
or&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;Function&lt;/b&gt;().Do( 1 );&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
둘다 그다지 아름답지 않다 -_-.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
이미 원하는 펑션의 이름이 있으므로 중복해서 네이밍을 해야하는것이 눈에 띄고 무엇보다 길고 괄호가 많아서 짜증난다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Try Two&lt;/h3&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
static function을 이용하면 조금(?) 간소화가 가능하다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;static void Do( int n ) { printf( &quot;%d\n&quot; , n ); }&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
사용은&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;b&gt;Function&lt;/b&gt;::Do( 1 );&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
그나마 조금 낫다. -_-&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Try Three&lt;/h3&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
그러나 내가 원하는건 딱 Function 으로 실행을 하는건데... 여기서 전처리기의 도움을 살짝 받으면 조금 나아진다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
#define&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;::Do&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;Function&lt;/b&gt;( 1 );&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
오오 된다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Try Four&lt;/h3&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
Static펑션을 사용하는 불합리함이 있으므로 저방법도 되긴하나 그다지 만족 스럽지 않다. 가능하면 내부에서 모든것을 해결하고 싶다. 그래서 operator() 를 이용한 방법을 써봤다. 개인적으로 펑션 포인터를 사용하는 구조 대신 이 operator() 를 이용하는걸 좋아한다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;void operator()( int n ) { printf( &quot;%d\n&quot; , n ); }&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
사용법은&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;Function&amp;nbsp;&lt;/b&gt;a;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
a( 1 ); // ok&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;Function&lt;/b&gt;()( 1 ); // ok&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;strike&gt;//&amp;nbsp;&lt;/strike&gt;&lt;b&gt;&lt;strike&gt;Function&lt;/strike&gt;&lt;/b&gt;&lt;strike&gt;( 1 ); // ERROR&lt;/strike&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
인스턴스화를 하지 않으면 펑션을 사용하지 못하는 단점 , 그리고 두번째 호출방식은 괄호가 중복으로 들어가는 단점이 있다.. 이걸 Try Three 방식을 적용해서&lt;br /&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;#define&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;()&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
사용&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;b&gt;Function&lt;/b&gt;( 1 )&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
오 -_-;; &amp;nbsp;되긴 된다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
전체적으로 정리해서 보면&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;void operator()( int n ) { printf( &quot;%d\n&quot; , n ); }&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
#define&amp;nbsp;&lt;b&gt;Function&amp;nbsp;&lt;/b&gt;&lt;b&gt;Function&lt;/b&gt;()&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
......; 해결은 됐는데 그다지 아름답지 않다 -_-;... 뻘짓은 계속!&lt;br /&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Try Five&lt;/h3&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
번쩍 떠올랐따. 니미 ; 생성자 이용하면 더 간단하잖아!&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;Function&lt;/b&gt;( int n ) { printf( &quot;%d\n&quot; , n ); }&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;b&gt;Function&lt;/b&gt;( 1 );&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
오오 간단하다. 하지만 만약&amp;nbsp;&lt;b&gt;리턴값&lt;/b&gt;이 필요한 경우라면 사용 할 수가 없다. 리턴값이 필요 없는 경우라면 이걸로 덕질을 종료할 수 있는 상황이지만.. 리턴도 받아야 돼!&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Try Six&lt;/h3&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
두 인자 더해서 리턴하는 함수로 예제를 바꾸자&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
int&amp;nbsp;&lt;b&gt;Add&lt;/b&gt;( int left , int right )&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;return left + right;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
}&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
자자 리턴을 받을려면 어떻게 해야할까.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
잠시고민 하다가 내린결론 , Type Casting Operator Overloading.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;typedef int RETURN_TYPE;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Generic Programming!!&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;Function&lt;/b&gt;( int left , int right )&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;nReturn = left + right;&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;operator RETURN_TYPE() { return nReturn; }&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;RETURN_TYPE nReturn; // 리턴값&lt;br /&gt;
};&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
int a =&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;( 1 , 2 );&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
와 되긴 됐다. orz;;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
이게 뭥미;;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
결국 나만 알아보는 코드가 만들어져 버렸다. -_-;;;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
자자 -_-;; 하는김에 좀더 해보자! 뻘짓 뻘짓&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Try Seven&lt;/h3&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
내친김에 InFunction의 베이스 클래스도 만들어보자. Type Casting Overloading을 베이스 클래스에서 처리해 보자 라는 데서 스타트..&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
template &amp;lt; typename Ret , typename Param1 , typename Param2 &amp;gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;InFunctionModule&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;InFunctionModule&lt;/b&gt;( Param1 left , Param2 right )&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;mReturn = Do( left , right );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;virtual Ret Do( Param1 left , Param2 right ) = 0; // Pure Virtual Function&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;operator Ret() { return mReturn; }&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
protected:&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Ret mReturn; // 리턴값&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
아싸 거창하다. 여차하면_인자_갯수만큼_베이스클래스_만들_태세.jpg&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
그리고 펑션 내부에서 사용은&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;&amp;nbsp;: public&amp;nbsp;&lt;b&gt;InFunctionModule&lt;/b&gt;&amp;lt; int , int , int &amp;gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;int Do( int left , int right )&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return left + right;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
int a = Function( 1 , 2 );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
아싸 뭔가 그럴싸하다. 그런데 안된다. -_- Function 에서 InFunctionModule로 생성자 인자 전달이 자동으로 되지 않는다. 그리고 그렇다 하더라도 큰 문제점이 하나있다. 프로그램 좀 해본 사람이라면 바로 눈에 들어올 듯.&amp;nbsp;&lt;b&gt;Pure Virtual Function을 Base Class의 Constructor 에서 호출하는 오류는 범했다.&lt;/b&gt;&amp;nbsp;( Effective C++ 참조 )&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Try Eight&lt;/h3&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
Try Seven의 문제를 해결해봤다. 결국 캐스팅하는 부분만 남기고 나머진 다 대피.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
template &amp;lt; typename Ret &amp;gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;InFunctionModule&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;typedef Ret ReturnType;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;void&amp;nbsp;&lt;b&gt;Return&lt;/b&gt;( ReturnType r ){ mReturn = r; }&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;operator ReturnType() { return mReturn; }&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
protected:&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;ReturnType mReturn; // 리턴값&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
사용하는 곳은&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;blockquote style=&quot;padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
struct&amp;nbsp;&lt;b&gt;Function&amp;nbsp;&lt;/b&gt;: public&amp;nbsp;&lt;b&gt;InFunctionModule&lt;/b&gt;&amp;lt; int &amp;gt;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;Function&lt;/b&gt;( int left , int right )&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;Return&lt;/b&gt;( left + right );&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
};&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
int a =&amp;nbsp;&lt;b&gt;Function&lt;/b&gt;( 1 , 2 );&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
오오 ... 이런 나중에 나도 못 알아볼 코드 같으니 orz&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h3 style=&quot;font-size: 12pt; &quot;&gt;Conclusion&lt;/h3&gt;프로그램은 누가봐도 눈에 잘 들어오게 짜는게 장땡이라고 생각한다.&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
그래서 이런 뻘짓은 제가 한걸로 충분하니 하지 마시고 -_-;&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
그나마 여기서 쓸만한 결론은 Try Five 밖에 없는거 같다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
어차피 로컬로 내부의 문제만 어떻게 짜든 무슨 상관이랴 -_-; 개중에 제일 깔끔하다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
펑션내부에 펑션은 C내부 구조적인 문제때문에 허용을 하지 않는다고 알고 있는데 , 스트럭쳐가 허용이 되는거면 굳이 막아둘 필요도 없지 않나 란 생각도 든다.&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
뻘짓 끝; 일해야지 -_-;&lt;/div&gt;
&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; direction: inherit; &quot;&gt;
&lt;/div&gt;
&lt;/span&gt;</description>
			<category>Column</category>
			<author>마고자</author>
			<guid>http://magoja.com/448</guid>
			<comments>http://magoja.com/448#entry448comment</comments>
			<pubDate>Tue, 05 Jan 2010 18:33:06 +0900</pubDate>
		</item>
		<item>
			<title>아바타 by 제임스 카메론</title>
			<link>http://magoja.com/447</link>
			<description>&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile1.uf.tistory.com/image/12370A274B3D785B22047A&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;62266_S77_123627[1].jpg&quot; height=&quot;598&quot; width=&quot;400&quot;/&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;NO SPOILER&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Imax 3D로 한번 보고.. 일반으로 한번 봤다.&lt;br /&gt;
&lt;br /&gt;
두번째 보러간다니까 주위에서 오덕이라고 난리다.&lt;br /&gt;
&lt;br /&gt;
책도 반복해서 읽으면 계속 새로운게 보이듯&lt;br /&gt;
&lt;br /&gt;
영화도 여러번보면 또 다른것이 보이기 마련이다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
영화는 참 잘만들었다.&lt;br /&gt;
&lt;br /&gt;
두번째 볼때 중점으로 둔것은 , Imax 3D와 일반의 차이느낌.&lt;br /&gt;
&lt;br /&gt;
그리고 주인공들의 표졍에 집중하면서 봤다.&lt;br /&gt;
&lt;br /&gt;
확실히 , 3D에서 봤을때의 화면의 웅장함은 절반에 못미치는 느낌이다.&lt;br /&gt;
&lt;br /&gt;
가능한한 Imax 3D로 보길 추천한다.&lt;br /&gt;
&lt;br /&gt;
그렇다고 일반이 구리냐..그건 아니다.&lt;br /&gt;
&lt;br /&gt;
3D로 보면 눈이 많이 피로하지만 , 일반으로보면 편하게 영화 관람이 가능하다.&lt;br /&gt;
&lt;br /&gt;
다만 이 영화는 3D에서 보는것을 기준으로 화면을 구성한것 같다.&lt;br /&gt;
&lt;br /&gt;
웅장함의 정도가 다르다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Imax 3D로 한번 더봐야지.. 내려가기전에..&lt;br /&gt;
&lt;br /&gt;
(오덕이라고 놀리려나..)&lt;br /&gt;
&lt;br /&gt;ps&amp;gt; 7년만에 극장에서 혼자서 영화 봤다.. 기분이 새롭다 -.-;;&lt;br /&gt;</description>
			<category>영화</category>
			<author>마고자</author>
			<guid>http://magoja.com/447</guid>
			<comments>http://magoja.com/447#entry447comment</comments>
			<pubDate>Fri, 01 Jan 2010 13:27:04 +0900</pubDate>
		</item>
		<item>
			<title>2010..</title>
			<link>http://magoja.com/446</link>
			<description>포스팅이 너무 뜸해서 근황 정리..&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;1, 매직은 다시 접었다.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
딱 한달 바짝했다. 나름 즐거웠고 , 그동안 매직에대한 나의 욕구를 확실히 채워줬다. 그리고 내가 예전에 매직을 왜 그만두었는지 다시금 떠오르게 했다.&lt;br /&gt;
&lt;br /&gt;
아마도 매직을 다시 손에 잡는일은 없을것 같다.&lt;br /&gt;
물론 매직은 여전히 좋다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;2, 아침에 &#039;귀를 기울이면&#039;을 자막없이 봤다.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
잔잔한 미야자키 하야오의 스토리가 좋았다.&lt;br /&gt;
다만.. 어른이 아이들을 바라보는 시점.. 어른들이 아이들에게 바라는 마음 태도들이&lt;br /&gt;
예전보다 가슴아 닿아오는게 느껴진다.&lt;br /&gt;
&lt;br /&gt;
나이가 들었나 보다.&lt;br /&gt;
아직까지 철이 너무 없지만.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;3, 새해가 밝았다.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
지난 한해를 돌아보면 , 나 스스로 만족하고 있지 않다.&lt;br /&gt;
이것저것 일을 많이 벌리고 , 말만 떠든다음에 수습 못한게 태반인것같다.&lt;br /&gt;
&lt;br /&gt;
올해는 또다른 변화의 시기가 될거다.&lt;br /&gt;
내 갈길이 조금씩 더 보이기 시작한다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;4, 술자리에서 주변 사람들이 바라는 나의 모습을 봤다.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
난 너무 안일한 사람인가.&lt;br /&gt;
처음 결심했을때의 나의 모습이 떠올랐다.&lt;br /&gt;
다시 초심으로 돌아가자&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;5, 은둔형 인간이라 주위사람들에게 소홀하다.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
이건 어릴때부터 계속 고쳐지지 않는다..&lt;br /&gt;
하지만 그들을 생각하지 않는 것이 아니다.&lt;br /&gt;
다만 무슨말을 할지 떠오르지가 않는다.&lt;br /&gt;
모두들 잘돼서 행복했으면좋겠다.&lt;br /&gt;
&lt;br /&gt;
그리고 난 더 잘될꺼다.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;明けました。おめでとうございます。&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;今年もよろしくお願いします。&lt;/span&gt;&lt;br /&gt;</description>
			<category>일기</category>
			<author>마고자</author>
			<guid>http://magoja.com/446</guid>
			<comments>http://magoja.com/446#entry446comment</comments>
			<pubDate>Fri, 01 Jan 2010 13:17:12 +0900</pubDate>
		</item>
		<item>
			<title>간만에 하는 게임...</title>
			<link>http://magoja.com/445</link>
			<description>&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://cfile27.uf.tistory.com/image/166C57184AEAAD4C1E3AF9&quot; alt=&quot;&quot; filemime=&quot;image/jpeg&quot; filename=&quot;magoja_blightning.jpg&quot; height=&quot;400&quot; width=&quot;480&quot;/&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Magic the Gathering Online&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a title=&quot;[http://www.wizards.com/magic/magazine/events.aspx?x=mtg/daily/decks/mol636535]로 이동합니다.&quot; target=&quot;_blank&quot; href=&quot;http://www.wizards.com/magic/magazine/events.aspx?x=mtg/daily/decks/mol636535&quot;&gt;http://www.wizards.com/magic/magazine/events.aspx?x=mtg/daily/decks/mol636535&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
위에 이미지는 상위 링크에 있는 내용.&lt;br /&gt;
한주에 한번씩 그주간 토너먼트 상위에 오른 덱들을 웹페이지에 게시한다.&lt;br /&gt;
&lt;br /&gt;
지금은 저거와는 좀 다른 덱을 쓰고 있긴한데 ( 어차피 튜닝한것 )&lt;br /&gt;
&lt;br /&gt;
정말 간만에&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;승부&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
라는걸 하고 있다.&lt;br /&gt;
&lt;br /&gt;
역시 나는 승부를 좋아하는 사람이란걸 다시 느낀다.&lt;br /&gt;
언제까지 할수 있을지 모르겠지만 , 지금 적당히 만족하면서 하고있다.&lt;br /&gt;
&lt;br /&gt;
매직온라인의 최대 장점은 , 상대가 언제나 제대로 해준다는 것.&lt;br /&gt;
물론 나도 무지 긴장해서 손이 떨리기도하고 오금이 저리기도 한다.&lt;br /&gt;
그런 승부의 긴장감이 난 좋다.&lt;br /&gt;
&lt;br /&gt;
토너에서 적당히 이기면서 , 게임할때 쓸 돈 정도는 벌고 있다.&lt;br /&gt;
당분간 돈 추가로 들어갈 일없이 즐길수 있을듯.&lt;br /&gt;
&lt;br /&gt;&lt;a title=&quot;[http://www.wizards.com/magic/Digital/MagicOnline.aspx]로 이동합니다.&quot; target=&quot;_blank&quot; href=&quot;http://www.wizards.com/magic/Digital/MagicOnline.aspx&quot;&gt;홈페이지는 이쪽&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
PS&amp;gt; 누구에게 권하기 어려운 게임이라 하면서 조금 외로운게 단점이라면 단점&lt;br /&gt;</description>
			<category>게임</category>
			<category>MO</category>
			<category>MTG</category>
			<category>게임</category>
			<category>매직온라인</category>
			<category>승부</category>
			<author>마고자</author>
			<guid>http://magoja.com/445</guid>
			<comments>http://magoja.com/445#entry445comment</comments>
			<pubDate>Fri, 30 Oct 2009 18:09:55 +0900</pubDate>
		</item>
		<item>
			<title>꿈이 아주 야무져요..</title>
			<link>http://magoja.com/444</link>
			<description>난 참 사람들에게 바라는게 많은것 같다.&lt;br /&gt;
&lt;br /&gt;
그리곤 그 바란것 만큼 되지 않는다고&lt;br /&gt;
&lt;br /&gt;
스스로 상처입곤하면서 툴툴댄다.&lt;br /&gt;
&lt;br /&gt;
그게 그들의 잘못이 아닌데말이지.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
이 성격을 버리지 못하는거 같다.&lt;br /&gt;
&lt;br /&gt;
게임할때도 상대가 건성으로 하는게 짜증나서 팔닥 거리기도하고&lt;br /&gt;
&lt;br /&gt;
스스로 좀 지켜줬으면 하는 예절들 때문에 열받기도하고&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
세상 모두가 내 마음 같지 않은데 말이지.&lt;br /&gt;
&lt;br /&gt;
참 어렵다 어려워&lt;br /&gt;
&lt;br /&gt;
상처 받지 않는 방법은 한가지 , 바라는게 없어야 하는데 -_-;&lt;br /&gt;</description>
			<category>일기</category>
			<author>마고자</author>
			<guid>http://magoja.com/444</guid>
			<comments>http://magoja.com/444#entry444comment</comments>
			<pubDate>Wed, 28 Oct 2009 18:52:09 +0900</pubDate>
		</item>
		<item>
			<title>JPT</title>
			<link>http://magoja.com/443</link>
			<description>결국 시험 보고 왔다.&lt;br /&gt;
&lt;br /&gt;결과는 -_-&lt;br /&gt;
&lt;br /&gt;얼마뒤에 나오겠지만.&lt;br /&gt;
&lt;br /&gt;이거 공부하고 600+ 받으면 행복할거 같은데&lt;br /&gt;
&lt;br /&gt;어쨌든간에 내가 얼마나 아는지 테스트 할수 있는 기회이기도 했고..&lt;br /&gt;
&lt;br /&gt;이걸 기준으로 당분간은 책을 보면서 단어를 외우면서&lt;br /&gt;
&lt;br /&gt;독해능력과 어휘력을 올리면서&lt;br /&gt;
&lt;br /&gt;다음시험은 1년뒤에나 보지 않을까 한다.&lt;br /&gt;
&lt;br /&gt;역시 모르는 단어가 너무 많아서 눈이 핑핑&lt;br /&gt;
&lt;br /&gt;독해 문제에 모르는 단어가 집중돼서 읽는데 시간이 많이 걸렸다.&lt;br /&gt;
&lt;br /&gt;많이 틀렸을듯 -_-;;&lt;br /&gt;
&lt;br /&gt;엉엉&lt;br /&gt;</description>
			<category>잡담</category>
			<author>마고자</author>
			<guid>http://magoja.com/443</guid>
			<comments>http://magoja.com/443#entry443comment</comments>
			<pubDate>Mon, 19 Oct 2009 12:38:45 +0900</pubDate>
		</item>
		<item>
			<title>아놔 ;; xml 라이브러리 ;;</title>
			<link>http://magoja.com/442</link>
			<description>개인작업할때 쓰던 xml라이브러리를 , 좀 쓰기 편하게 정리하던 차였다.&lt;br /&gt;
&lt;br /&gt;근데 지금까지 한번도 세이브를 안해봐서 -_-;&lt;br /&gt;
&lt;br /&gt;세이브를 했더니..&lt;br /&gt;
&lt;br /&gt;니미 - -;&lt;br /&gt;
&lt;br /&gt;코드는 나름 unicode로 되어있길래 기대했었는데.&lt;br /&gt;
&lt;br /&gt;입출력은 유니코드를 전혀 고려해지 않고 짜져 있다&lt;br /&gt;
&lt;br /&gt;이러니 꼬이지 -_-;;&lt;br /&gt;
&lt;br /&gt;어째 읽을때 한글 제대로 안읽히더라 -_-;&lt;br /&gt;
&lt;br /&gt;인터넷으로 대충 긁어서 썼더니 이런변이 ;;;&lt;br /&gt;
&lt;br /&gt;으.. multi byte codeset 으로 프로젝트를 만들기도 애매하고 -_-&lt;br /&gt;</description>
			<category>Column</category>
			<author>마고자</author>
			<guid>http://magoja.com/442</guid>
			<comments>http://magoja.com/442#entry442comment</comments>
			<pubDate>Fri, 09 Oct 2009 00:11:36 +0900</pubDate>
		</item>
	</channel>
</rss>
