Click here to Skip to main content
15,888,733 members
Articles / Programming Languages / C++

Amusing C++: funny tricks

Rate me:
Please Sign up or sign in to vote.
3.00/5 (2 votes)
1 Nov 2011CPOL 12.8K   1  
Try this one://Can we print all integers from 1 to 30??/int x = 0;while (x < 30){ _tprintf(_T("X = %d\n"), ++x);}

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions