how about this style
for( int cnt=0; ;cnt++ ) { }
Misplaced Lens Cap
Game of Thrones Daily
official daine visual archive

Andulka

bliss lane
Noah Kahan

pixel skylines
Sade Olutola

Product Placement

Kiana Khansmith
No title available

blake kathryn
Claire Keane
"I'm Dorothy Gale from Kansas"
๐
icyghini twinkie
cherry valley forever
he wasn't even looking at me and he found me
๐ฉต avery cochrane ๐ฉต
we're not kids anymore.
seen from Malaysia
seen from United States
seen from United States

seen from Italy
seen from Azerbaijan
seen from Azerbaijan
seen from United States
seen from United States
seen from United States

seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from Germany
seen from United States
seen from Venezuela

seen from United States

seen from Malaysia

seen from United Kingdom
@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/ย // !!