how about this style
for( int cnt=0; ;cnt++ ) { }
AnasAbdin

if i look back, i am lost
todays bird

Origami Around
Acquired Stardust

โฃ Chile in a Photography โฃ
dirt enthusiast

Discoholic ๐ชฉ
art blog(derogatory)

shark vs the universe

โ
tumblr dot com
I'd rather be in outer space ๐ธ
d e v o n
Show & Tell
No title available
DEAR READER

pixel skylines
he wasn't even looking at me and he found me
No title available

seen from China
seen from United States

seen from Singapore
seen from United States

seen from Netherlands
seen from Germany
seen from Tรผrkiye

seen from Malaysia
seen from Tรผrkiye
seen from Chile
seen from Jordan
seen from United States
seen from United States

seen from Malaysia
seen from United States
seen from United States
seen from United States
seen from United States

seen from Singapore

seen from Sweden
@rekkod
how about this style
for( int cnt=0; ;cnt++ ) { }
Qualitative Estimates of Locality
Being able to look at code and get a qualitative sense of its locality is a key skill for a professional programmer.
gcc option
... ๋ฉ๋ชจ๋ฆฌ์ ๋ญ๋น๊ฐ ๋ฐ์ํ๋๋ผ๋ intํ ๋ณ์๋ฅผ ์ฌ์ฉํ๋ค. ... ์ปดํจํฐ๋ ๋ด๋ถ์ ์ผ๋ก intํ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ฅ ๋น ๋ฅด๊ฒ ์ฐ์ฐ(์ฒ๋ฆฌ)ํ๊ธฐ ๋๋ฌธ์ด๋ค. ๋ ์?
์ดํ๊ฐ์ C ํ๋ก๊ทธ๋๋ฐ 116p
sizeof val
sizeof(int) == sizeof val
http://codepad.org/RNg2coLc
float error
/* float_error.c */ #include <stdio.h> int main(void) { int i; float f = 0.0; for(i=0; i<100; i++) f += 0.1; printf("%f \n", f); return 0; }
output
C/C++ ์์ฝ์ด ๋ชฉ๋ก (C/C++ keywords)
Cย and C++ย keywords
auto break case char const continue default do
double else enum extern float for goto if
int long register return short signed sizeof static
struct switch typedef union unsigned void volatile while
http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8a.doc%2Flanguage%2Fref%2Fkeyw.htm
์ฐ์ฐ์ ์ฐ์ ์์(operator priority)
http://www.winapi.co.kr/clec/cpp1/5-4-1.htm
์ผํ ์ฐ์ฐ์(comma operator)
comma ์ฐ์ฐ์๋ ์๋ ํ ํํ์(expression)์ด ์์ด์ผํ๋ ๊ณณ์์ 2๊ฐ ์ด์ ํํ์์ ์ฐ๋ ค๊ณ ํ ๋ ์ฌ์ฉํฉ๋๋ค. comma ์ฐ์ฐ์๋ก ๋ฌถ์ธ ํํ์๋ค์ ์ข์ธก ํํ์๋ถํฐ ์ฐจ๋ก๋ก ํ๊ฐ(evaluation) ํ ๋ง์ง๋ง ๊ฐ์ฅ ์ฐ์ธก ํํ์์ ๊ฒฐ๊ณผ๊ฐ์ดย return ๋ฉ๋๋ค.์ ์ฒด ํํ์์ ๊ฒฐ๊ณผ๊ฐ์ด ๋ฉ๋๋ค.( ์ ์ ๋ ์ถฉ๊ณ ๊ฐ์ฌํฉ๋๋ค.)
์ฐ์ฐ์ ์ฐ์ ์์์ ๋ฐ๋ผ ๊ฒฐ๊ณผ ๊ฐ์ด ๋ฌ๋ผ์ง๋ฏ๋ก ์ฃผ์๊น๊ฒ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
x = (y = 4, 5); ๊ฒฐ๊ณผ x == 5, y == 4 x = y = 4, 5; ๊ฒฐ๊ณผ x == 4, y == 4
online compiler
http://codepad.org
http://sourcelair.com
http://ideone.com
http://bellard.org/jslinux/ย // !!