Never been to DZone Snippets before?

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

netGlyph.cpp (See related posts)

#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();
}

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts