DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

NetGlyph.cpp

02.01.2008
| 915 views |
  • submit to reddit
        #include <iostream>

using namespace std;

void function1 ()
{
 int i=1;
 cout << i++ << endl;
 function1();
}

void function2 ()
{
 static int i=1;
 cout << (i+=10) << (i+=10) << (i+=2) << (i+=100) << (i+=50) << (i+=4) << (i+=670) << (i+=20);
 if (i<100000000) function2();
}

main()
{
  int i;
  function2();
}