All pastes #744667 Raw Edit

Cpp-Source.Info

public cpp v1 · immutable
·published 2007-10-21 18:18 UTC
rendered paste body
/*CopyRighted Lamonte Harris of CPP-Source.Info*/#include <vector>#include <iostream>using std::vector;using std::cout;using std::endl;int main(){	vector<int> objects(40);	int rows = 4;	int by = 20;	int firstr[10] = {10,10, 30,10, 50,10, 70,10, 90,10};	int e = 1;	int count = 0;	int what = 0;	for(int x = 0; x < objects.size(); x++)	{		int c = (e > 1) ? by * e : 0;		if(what == 1)		{			what = 0; 			objects[x] = firstr[count] + c;		}		else		{			objects[x] = firstr[count]; 			what++;		}		if(count >= 9)		{ 			count = 0; 			e++;		}		else		{ 		count++; 		}	}	int q = 1;	for(int y = 0;y < objects.size(); y++)	{		cout << objects[y] <<endl;		if(q == 2)		{			cout << endl <<"----"<< endl;			q = 1;		}		else		{			q++;		}	}	system("PAUSE");	return 0;}