1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream> #include <limits.h> int main( int argc, char **argv ) { int i = 0; int a; while( i < INT_MAX ) { if ( a = i ) std::cout << i << ": It's true." << std::endl; i++; } return 0; }