Click here to Skip to main content
15,879,535 members
Articles / Programming Languages / C++

Amusing C++: funny tricks

Rate me:
Please Sign up or sign in to vote.
4.85/5 (17 votes)
22 Oct 2011CPOL3 min read 61.4K   4  
A few uncommon code sample

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

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

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions