tag:blogger.com,1999:blog-39913462561854506772024-02-20T12:57:07.036-08:00OOP344_YJKUnknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3991346256185450677.post-21851401216951384112012-12-11T21:29:00.002-08:002012-12-11T21:29:58.772-08:00Creating bit functionchar* bits(unsigned int val) <br />
returns a character string holding the bit pattern of val (i.e cout<<bits(0xF7)<<endl, will print 11110111)<br />
<br />
char* bits(unsigned int val) {<br /> unsigned int m = 1 << (sizeof(val)*8 -1); <br /> char* str = new char[sizeof(val)*8];<br /> int i = 0;<br /> while(m){ <br /> sprintf(&str[i], "%d", !!(m & val)); <br /> m = m >> 1;<br /> i++;<br /> }<br /> return str;<br />} Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3991346256185450677.post-49508597066760149362012-12-11T21:05:00.002-08:002012-12-11T21:05:24.892-08:00Sets the "bitNo" bit of val to the "bitVal" value void setBit(unsigned int& val, unsigned int bitNo, bool bitval) {<br /> val = bitval ? (val | (1 << bitNo)) : (val & (~(1 << bitNo)));<br />}<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3991346256185450677.post-25829579175109883662012-11-13T22:11:00.004-08:002012-11-13T22:11:53.475-08:00<h2 class="r" style="background-color: white; display: block; font-family: arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-size: large;"><b><span style="color: black;">How to<span class="Apple-converted-space"> </span><em style="font-style: normal;">set</em><span class="Apple-converted-space"> </span>a<span class="Apple-converted-space"> </span><em style="font-style: normal;">pointer</em><span class="Apple-converted-space"> </span>to<span class="Apple-converted-space"> </span><em style="font-style: normal;">NULL</em></span></b></span></h2>
<h2 class="r" style="background-color: white; display: block; font-family: arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-size: large;"><b><span style="color: black;"><em style="font-style: normal;"> </em></span></b></span><a class="GFUQPS5BH1B" href="javascript:void(0);" kind="click"> <div class="GFUQPS5BM1B">
<span class="GFUQPS5BJ1B GFUQPS5BDUB"></span></div>
</a></h2>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: small;"><span style="color: black;"><em style="font-style: normal;">1. CField* _fld[C_MAX_NO_FIELDS] = {0};</em></span></span></span></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<br /></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: small;"><span style="color: black;"><em style="font-style: normal;">2. CField* _fld[C_MAX_NO_FIELDS];</em></span></span></span></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: small;"><span style="color: black;"><em style="font-style: normal;"> memset(_fld, 0, sizeof(_fld));</em></span></span></span></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<br /></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: small;"><span style="color: black;"><em style="font-style: normal;">3. CField* _fld[C_MAX_NO_FIELDS];</em></span></span></span></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: small;"><span style="color: black;"><em style="font-style: normal;"> for( i = 0; i < sizeof(_fld) / sizeof(CField*); i++) {</em></span></span></span></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: small;"><span style="color: black;"><em style="font-style: normal;"> _fld[i] = NULL;</em></span></span></span></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: small;"><span style="color: black;"><em style="font-style: normal;"> } </em></span></span></span></div>
<div class="r" style="background-color: white; display: block; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: 2; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><span style="font-size: small;"><span style="color: black;"><em style="font-style: normal;"> </em></span></span></span></span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3991346256185450677.post-30297721764630948272012-11-10T07:09:00.003-08:002012-11-10T07:09:46.250-08:00<br />
<h1 class="firstHeading" id="firstHeading" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-image: none; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-family: sans-serif; font-size: 1.6em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.2em; margin: 0px 0px 0.1em; orphans: 2; overflow: hidden; padding-bottom: 0px; padding-top: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span dir="auto">#pragma once</span></h1>
<div style="background-image: none; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin: 0px 0px 0.6em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em;">
<span class="mw-headline" id="Advantages_and_disadvantages"><span style="font-size: small;">I just wondered what the differences between #pragma once and safeguard are. So I found a useful information from Wikipedia </span></span></div>
<h2 style="background-image: none; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin: 0px 0px 0.6em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em;">
<span class="mw-headline" id="Advantages_and_disadvantages"> Advantages and disadvantages</span></h2>
<div style="line-height: 1.5em; margin: 0.4em 0px 0.5em;">
Using<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#pragma once</code><span class="Apple-converted-space"> </span>instead of include guards will typically increase compilation speed since it is a higher-level mechanism; the compiler itself can compare filenames or<span class="Apple-converted-space"> </span><a href="http://en.wikipedia.org/wiki/Inode" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Inode">inodes</a><span class="Apple-converted-space"> </span>without having to invoke the<span class="Apple-converted-space"> </span><a href="http://en.wikipedia.org/wiki/C_preprocessor" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="C preprocessor">C preprocessor</a><span class="Apple-converted-space"> </span>to scan the header for<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#ifndef</code><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#endif</code>.</div>
<div style="line-height: 1.5em; margin: 0.4em 0px 0.5em;">
Common compilers such as<span class="Apple-converted-space"> </span><a href="http://en.wikipedia.org/wiki/GNU_Compiler_Collection" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="GNU Compiler Collection">GCC</a>,<span class="Apple-converted-space"> </span><a href="http://en.wikipedia.org/wiki/Clang" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Clang">Clang</a>, and<span class="Apple-converted-space"> </span><a href="http://en.wikipedia.org/wiki/Edison_Design_Group" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Edison Design Group">EDG-based compilers</a><span class="Apple-converted-space"> </span>include special speedup code to recognize and optimize the handling of include guards, and thus little or no speedup benefit is obtained from the use of<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#pragma once</code>.<sup class="reference" id="cite_ref-2" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-2" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[2]</a></sup><sup class="reference" id="cite_ref-3" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-3" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[3]</a></sup><sup class="reference" id="cite_ref-4" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-4" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[4]</a></sup></div>
<div style="line-height: 1.5em; margin: 0.4em 0px 0.5em;">
Again because the compiler itself is responsible for handling<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#pragma once</code>, it is not necessary for the programmer to create new macro names such as<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">GRANDPARENT_H</code><span class="Apple-converted-space"> </span>in the<span class="Apple-converted-space"> </span><a href="http://en.wikipedia.org/wiki/Include_guard" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Include guard">Include guard</a><span class="Apple-converted-space"> </span>article's example. This eliminates the risk of name clashes, meaning that no header file can<span class="Apple-converted-space"> </span><i>fail</i><span class="Apple-converted-space"> </span>to be included at least once.</div>
<div style="line-height: 1.5em; margin: 0.4em 0px 0.5em;">
However, this high-level handling is not perfect; the programmer must rely on the compiler to handle<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#pragma once</code><span class="Apple-converted-space"> </span>correctly. If the compiler makes a mistake, for example by failing to recognize that two<span class="Apple-converted-space"> </span><a href="http://en.wikipedia.org/wiki/Symbolic_link" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Symbolic link">symbolic links</a><span class="Apple-converted-space"> </span>with different names point to the same file, then the compilation will fail. Compilers with<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#pragma once</code>-related bugs included<span class="Apple-converted-space"> </span><a class="mw-redirect" href="http://en.wikipedia.org/wiki/LCC-Win32" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="LCC-Win32">LCC-Win32</a><span class="Apple-converted-space"> </span>as of 2004<sup class="Template-Fact" style="line-height: 1em; white-space: nowrap;">[<i><a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Wikipedia:Citation needed"><span title="This claim needs references to reliable sources from November 2012">citation needed</span></a></i>]</sup><sup class="reference" id="cite_ref-5" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-5" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[5]</a></sup><sup class="reference" id="cite_ref-6" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-6" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[6]</a></sup><span class="Apple-converted-space"> </span>and GCC as of 1998.<sup class="reference" id="cite_ref-7" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-7" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[7]</a></sup><span class="Apple-converted-space"> </span>GCC originally gave a warning declaring<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#pragma once</code>"obsolete" when compiling code that used it. However, with the 3.4 release of GCC, the<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace, Courier;">#pragma once</code><span class="Apple-converted-space"> </span>handling code was fixed to behave correctly with symbolic and hard links. The feature was "un-deprecated" and the warning removed.<sup class="reference" id="cite_ref-8" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-8" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[8]</a></sup><sup class="reference" id="cite_ref-9" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-9" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[9]</a></sup></div>
<div style="line-height: 1.5em; margin: 0.4em 0px 0.5em;">
<span style="font-size: small;"><span style="color: red;"><u><b>Both<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace,Courier;">#pragma once</code><span class="Apple-converted-space"> </span>and include guards can be used to write portable code that can also take advantage of the<span class="Apple-converted-space"> </span><code style="background-color: #f9f9f9; font-family: monospace,Courier;">#pragma once</code><span class="Apple-converted-space"> </span>optimization if the compiler supports it:</b></u></span></span></div>
<dl style="margin-bottom: 0.5em; margin-top: 0.2em;">
<dt style="font-weight: bold; margin-bottom: 0.1em;">File "grandparent.h"</dt>
</dl>
<div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); color: black; direction: ltr; font-family: monospace, Courier; line-height: 1.1em; padding: 1em;">
<div class="c source-c" style="font-family: monospace; line-height: normal;">
<pre class="de1" style="background-image: none; background-position: initial initial; background-repeat: initial initial; border: 0px none white; color: black; font-family: monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0px; padding: 0px; vertical-align: top;"><span class="co2" style="color: #339933;">#pragma once</span>
<span class="co2" style="color: #339933;">#ifndef GRANDPARENT_H</span>
<span class="co2" style="color: #339933;">#define GRANDPARENT_H</span>
<span class="kw4" style="color: #993333;">struct</span> foo
<span class="br0" style="color: #009900;">{</span>
<span class="kw4" style="color: #993333;">int</span> member<span class="sy0" style="color: #339933;">;</span>
<span class="br0" style="color: #009900;">}</span><span class="sy0" style="color: #339933;">;</span>
<span class="co2" style="color: #339933;">#endif /* GRANDPARENT_H */</span>
</pre>
</div>
</div>
<h2 style="background-image: none; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin: 0px 0px 0.6em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em;">
<span class="editsection" style="-webkit-user-select: none; float: right; font-size: 13px; margin-left: 5px;"></span><span class="mw-headline" id="Portability">Portability</span></h2>
<table class="wikitable sortable jquery-tablesorter" style="background-color: #f9f9f9; border-collapse: collapse; border: 1px solid rgb(170, 170, 170); color: black; font-size: 13px; margin: 1em 0px;"><thead style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: black; font-family: sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.200000762939453px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<tr><th class="headerSort" style="background-color: #f2f2f2; background-image: url(data:image/gif; background-position: 100% 50%; background-repeat: no-repeat no-repeat; border: 1px solid rgb(170, 170, 170); cursor: pointer; padding: 0.2em 21px 0.2em 0.2em; text-align: center;" title="Sort ascending">Compiler</th><th class="headerSort" style="background-color: #f2f2f2; background-image: url(data:image/gif; background-position: 100% 50%; background-repeat: no-repeat no-repeat; border: 1px solid rgb(170, 170, 170); cursor: pointer; padding: 0.2em 21px 0.2em 0.2em; text-align: center;" title="Sort ascending">#pragma once</th></tr>
</thead><tbody style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: black; font-family: sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.200000762939453px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"><a href="http://en.wikipedia.org/wiki/Clang" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Clang">Clang</a></td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;">Supported<sup class="reference" id="cite_ref-10" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-10" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[10]</a></sup></td></tr>
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"><a href="http://en.wikipedia.org/wiki/Comeau_C/C%2B%2B" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Comeau C/C++">Comeau C/C++</a></td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;">Supported<sup class="reference" id="cite_ref-11" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-11" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[11]</a></sup></td></tr>
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"><a class="new" href="http://en.wikipedia.org/w/index.php?title=Digital_Mars_C%2B%2B&action=edit&redlink=1" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #a55858; text-decoration: initial;" title="Digital Mars C++ (page does not exist)">Digital Mars C++</a></td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;">Supported<sup class="reference" id="cite_ref-12" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-12" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[12]</a></sup></td></tr>
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"><a href="http://en.wikipedia.org/wiki/GNU_Compiler_Collection" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="GNU Compiler Collection">GCC</a></td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;">Supported<sup class="reference" id="cite_ref-13" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-13" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[13]</a></sup></td></tr>
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"><a href="http://en.wikipedia.org/wiki/Intel_C%2B%2B_Compiler" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Intel C++ Compiler">Intel C++ Compiler</a></td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;">Supported<sup class="reference" id="cite_ref-14" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-14" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[14]</a></sup></td></tr>
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"><a class="mw-redirect" href="http://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial;" title="Microsoft Visual C++">Microsoft Visual C++</a></td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;">Supported<sup class="reference" id="cite_ref-15" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-15" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[15]</a></sup></td></tr>
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"><a class="new" href="http://en.wikipedia.org/w/index.php?title=C%2B%2BBuilder_XE3&action=edit&redlink=1" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #a55858; text-decoration: initial;" title="C++Builder XE3 (page does not exist)">C++Builder XE3</a></td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;">Supported<sup class="reference" id="cite_ref-16" style="font-style: normal; font-weight: normal; line-height: 1em;"><a href="http://en.wikipedia.org/wiki/Pragma_once#cite_note-16" style="background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: initial; white-space: nowrap;">[16]</a></sup></td></tr>
</tbody></table>
<br class="Apple-interchange-newline" />
<span style="font-size: small;"> <b><span style="background-color: white; color: black; display: inline ! important; float: none; font-family: sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.2px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-size: small;">From Wikipedia<b> <<a href="http://en.wikipedia.org/wiki/Pragma_once" target="_blank">http://en.wikipedia.org/wiki/Pragma_once</a>></b></span></span></b></span><br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3991346256185450677.post-50112131849551435772012-09-08T20:27:00.003-07:002012-09-08T20:27:57.892-07:00Welcome to Youngjae Kim's Blog.Unknownnoreply@blogger.com0