All pastes #97070 Raw Edit

Stuff

public cpp v1 · immutable
#97070 ·published 2006-07-23 10:55 UTC
rendered paste body
#include <iostream>#include <vector>using namespace std;struct t{   int data;   int color;};int main(){	vector < vector <t> > y;	vector <t> x;		// uzpildome pradines reiksmes		t n;	n.data = 10;	n.color = 8;  		int i=0, j=0;		// uzpildome		for (i=0; i < 8; i++)	{		for (j=0; j < 8; j++)	    x.push_back(n);				y.push_back(x);	}		// naudojimas	y[0][0].data = 1;	    return 0;}