<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://valley.egloos.com/rss/style/style.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>이글루스 'dowhile' 태그 최근글</title>
		<link>http://valley.egloos.com/tag/dowhile</link>
		<description>dowhile</description>
		<language>ko</language>
		<pubDate>Thu, 24 Sep 2009 09:41:44 +0900</pubDate>
		<generator>Egloos</generator>
		<item>
	<title><![CDATA[9/24일 목요일 수업흔적]]></title>
	<link>http://forrest.egloos.com/1631763</link>
	<guid>http://forrest.egloos.com/1631763</guid>
	<description>
	<![CDATA[ 
/*   a b    + b a      ------      9 9  가 성립하는 a b조합 구하기*/#include &amp;lt;stdio.h&amp;gt;int main() {  int a, b, result; for(a = 0; a &amp;lt;10; a++)  {   for(b = 0; b&amp;lt;10; b++)   {    result = (a*10+b)+(b*10+a);    if(result == 99)    {     printf(&quot;%d, %d\n&quot;, a, b);    }   }  } return 0; }====================================================================== /*   a b c d    + d c b a      ----------     	]]>
	</description>
	<pubDate>Thu, 24 Sep 2009 09:41:44 +0900</pubDate>
	<dc:creator><![CDATA[Forest For Rest (휴식의숲)]]></dc:creator>
</item>
<item>
	<title><![CDATA[9/23일 수업흔적]]></title>
	<link>http://forrest.egloos.com/1631076</link>
	<guid>http://forrest.egloos.com/1631076</guid>
	<description>
	<![CDATA[ 
/* continue사용 예제임 'ㅅ' */  #include &amp;lt;stdio.h&amp;gt;int main() {  int cnt = 0;  int n = 0; printf(&quot;# 2와 3의 배수가 아닌 100이하의 자연수들\n&quot;); while((n++)&amp;lt;100)  {   if(!(n%2)||!(n%3))  /* if((n%2) == 0 || (n%3)==0)과 동일 */   {    continue;   }    printf(&quot;%d, &quot;, n);    cnt++;  } printf(&quot;\n\n&quot;);  printf(&quot; #2와 3의 배수가 아닌 100이하의 자연수의 개수 : %d\n&quot;, cnt); return 0; } ===================================================	]]>
	</description>
	<pubDate>Wed, 23 Sep 2009 14:50:27 +0900</pubDate>
	<dc:creator><![CDATA[Forest For Rest (휴식의숲)]]></dc:creator>
</item>
<item>
	<title><![CDATA[try { throw } catch {} &amp; do { break } while (false) #2]]></title>
	<link>http://purewell.egloos.com/3507734</link>
	<guid>http://purewell.egloos.com/3507734</guid>
	<description>
	<![CDATA[ 
rein님의 C/C++의 예외 모델 차이 포스팅에서 C와 C++ 예외 모델 차이, 나와 다른 견해에 대해 깔끔하게 잘 설명하셨다. rein님 포스팅을 보고 내 포스팅에 덧글로 달까...라고 생각했지만 말도 길어지고 해서 트랙백납치!!    100년도 안 되는 삶을 살아오면서 실무에 setjmp/longjmp를 쓴 적은 단 한 번도 없다. 누구나 생각하듯 나 역시 'setjmp/longjmp는 미친 짓이야!'라고 밖에 설명할 길이 없다. (오로지 컴파일러나 커널/드라이버 만드는 사람이나 쓰는 system call이라 생각하고 있다!) 그러나 본인은 rein님과 달리 C++코드에 거침 없이 do-while(false)를 쓴다. 그것이 C++답지 않다는 것도 물론 알고 있다. 그것이 C++에서보다 좀더 신경써야할	]]>
	</description>
	<pubDate>Thu, 29 Nov 2007 17:13:32 +0900</pubDate>
	<dc:creator><![CDATA[Purewell.BIZ]]></dc:creator>
</item>
<item>
	<title><![CDATA[try { throw } catch {} &amp; do { break } while (false)]]></title>
	<link>http://purewell.egloos.com/3507519</link>
	<guid>http://purewell.egloos.com/3507519</guid>
	<description>
	<![CDATA[ 
예외를 처리하기 위해 여러가지 방법이 있는데, C++에서 표준으로 제공하는 try-throw-catch가 있다. 그러나 이 방법은 exception을 처리하기 위해 갖가지 삽질을 내부적으로 하는 것으로 매우 느리다는게 잘 알려져 있다. 그래도 얼마나 느린지 알고 싶었다. 그래서 do {} while (false)와 비교해보기로 했다.#include &amp;lt;exception&amp;gt;  #include &amp;lt;iostream&amp;gt;  #include &amp;lt;sys/time.h&amp;gt;  using namespace std;    static size_t gTestCount(100000);    typedef long long ts_t;    ts_t  getTimestamp(void)  {      static _	]]>
	</description>
	<pubDate>Thu, 29 Nov 2007 14:06:17 +0900</pubDate>
	<dc:creator><![CDATA[Purewell.BIZ]]></dc:creator>
</item>
	</channel>
</rss>

