<?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>이글루스 'cxx' 태그 최근글</title>
		<link>http://valley.egloos.com/tag/cxx</link>
		<description>cxx</description>
		<language>ko</language>
		<pubDate>Thu, 19 Jan 2012 10:58:01 +0900</pubDate>
		<generator>Egloos</generator>
		<item>
	<title><![CDATA[간단한 정수 이야기]]></title>
	<link>http://purewell.egloos.com/5075891</link>
	<guid>http://purewell.egloos.com/5075891</guid>
	<description>
	<![CDATA[ 
C/C++ 정수 타입에는 여러가지가 있다.  크기별로 int8_t, int16_t, int32_t, int64_t 등이 있고, 앞에 sign-bit 사용 여부에 따라 앞에 u를 붙이기도 한다.  크기나 길이를 나타내는 size_t/ssize_t라는 것도 있다. 시스템마다 다르며, 보통 컴파일러가 지원하는 가장 큰 정수를 기반으로 만들어진다. printf 등에 사용할 포맷으로는 %zd, %zu로 쓸 수 있다.  포인터는 메모리 주소값이고, 이것 역시 정수로 표현이 가능하다. 이러한 것은 intptr_t/uintptr_t를 쓸 수 있다.  컴파일러가 지원하는 가장 큰 정수는 intmax_t/uintmax_t이고, printf 등에 사용할 포맷으로 %jd, %ju를 쓸 수 있다.  문자열을 정수로 변환하는 함수로	]]>
	</description>
	<pubDate>Thu, 19 Jan 2012 10:58:01 +0900</pubDate>
	<dc:creator><![CDATA[Purewell.BIZ]]></dc:creator>
</item>
<item>
	<title><![CDATA[기본 생성자가 없는 객체 배열을 만들 수 있나?]]></title>
	<link>http://purewell.egloos.com/4002582</link>
	<guid>http://purewell.egloos.com/4002582</guid>
	<description>
	<![CDATA[ 
C++ in Action Book: Pointers  There is no direct way to initialize the contents of a dynamically allocated array. We just have to iterate through the newly allocated array and set the values by hand.  C++에서 new연산자를 이용해서 객체배열을 만들 때, 객체에 기본생성자는 없고 다른 생성자가 있을 경우는 사용할 수 있는 문법 자체가 전무하다. 그냥 처음부터 끝까지 돌면서 하나하나 초기화 해주시라는 답안이다. 잇힝~*    C/C++이 상당히 유연하다고 생각했는데, 가끔씩 이런 것에서 뒷통수 때릴 수도 있다. 다른 언어는 어떨까? 왠지 Java/C#/	]]>
	</description>
	<pubDate>Fri, 05 Dec 2008 17:42:47 +0900</pubDate>
	<dc:creator><![CDATA[Purewell.BIZ]]></dc:creator>
</item>
<item>
	<title><![CDATA[Double free]]></title>
	<link>http://purewell.egloos.com/3868782</link>
	<guid>http://purewell.egloos.com/3868782</guid>
	<description>
	<![CDATA[ 
각종 표준에는 이미 해체한 메모리를 다시 해체하려고 할 때 행동을 정의하지 않고 있으나, GLIBC는 깔끔하게 자살해주고 있다. 자살할 때 패턴을 눈에 익혀 놓으면 나중에 왜 죽었지?하는 일이 줄어들 것이다.    #include &amp;lt;stdlib.h&amp;gt;    int  main(int argc, char* argv[])  {      void* p(malloc(1024));              free(p);              free(p);              return 0;  }    컴파일 및 실행    $ g++ -O2 -g dblfree.cpp -o dblfree    $ ./dblfree  *** glibc detected *** ./dblfree: double free or 	]]>
	</description>
	<pubDate>Mon, 18 Aug 2008 10:37:09 +0900</pubDate>
	<dc:creator><![CDATA[Purewell.BIZ]]></dc:creator>
</item>
<item>
	<title><![CDATA[delete this]]></title>
	<link>http://purewell.egloos.com/3860584</link>
	<guid>http://purewell.egloos.com/3860584</guid>
	<description>
	<![CDATA[ 
[16] Freestore management, C++ FAQ Lite (내 맘대로 번역)  [16.15] Is it legal (and moral) for a member function to say delete this?  [16.15] 멤버함수에서 'delete this'가 올바른 구문인가?    As long as you're careful, it's OK for an object to commit suicide (delete this).  주의 깊게 사용한다면, 객체가 자살하는 구문(delete this)은 괜찮다.    Here's how I define &quot;careful&quot;:  어떻게 &quot;주의 깊게&quot; 사용하냐면:    You must be absolutely 100% positive sure that	]]>
	</description>
	<pubDate>Mon, 11 Aug 2008 15:54:56 +0900</pubDate>
	<dc:creator><![CDATA[Purewell.BIZ]]></dc:creator>
</item>
<item>
	<title><![CDATA[C/C++ Programming Language Resources]]></title>
	<link>http://tactlee.egloos.com/558326</link>
	<guid>http://tactlee.egloos.com/558326</guid>
	<description>
	<![CDATA[ 
C Programming Language Tutorial Programming in C: UNIX System Calls and Subroutines using C - Dave Marshall Programming in C: A Tutorial - Brian W. KernighanC Preprocessor The C Preprocessor for GCC version 2 - Rechard M. StallmanLibrary ReferenceC++ Library Reference	]]>
	</description>
	<pubDate>Thu, 16 Nov 2006 14:34:51 +0900</pubDate>
	<dc:creator><![CDATA[호기심 많은 녀석]]></dc:creator>
</item>
	</channel>
</rss>

