All pastes #483525 Raw Edit

burt

public cpp v1 · immutable
·published 2007-05-11 19:35 UTC
rendered paste body
		int n = 19;		Commune* communes;		communes = new Commune[n];		Commune anderlecht("Anderlecht", 16000); communes[0] = anderlecht;		Commune auderghem("Auderghem", 11000); communes[1] = auderghem;		Commune berchem("Berchem", 6000); communes[2] = berchem;		Commune bruxellescentre("Bruxelles-Centre", 3000); communes[3] = bruxellescentre;		Commune etterbeek("Etterbeek", 10000); communes[4] = etterbeek;		Commune evere("Evere", 11000); communes[5] = evere;		Commune foret("Foret", 16000); communes[6] = foret;		Commune ganshoren("Ganshoren", 15000); communes[7] = ganshoren;		Commune ixelles("Ixelles", 17000); communes[8] = ixelles;		Commune jette("Jette", 12000); communes[9] = jette;		Commune koekelberg("Koekelberg", 9000); communes[10] = koekelberg;		Commune molenbeek("Molebeek", 12000); communes[11] = molenbeek;		Commune saintgilles("Saint-Gilles", 16000); communes[12] = saintgilles;		Commune saintjosse("Saint-Josse", 9000); communes[13] = saintjosse;		Commune schaerbeek("Schaerbeek", 13000); communes[14] = schaerbeek;		Commune uccle("Uccle", 18000); communes[15] = uccle;		Commune watermael("Watermael", 22000); communes[16] = watermael;		Commune wolstlambert("Wol. St Lambert", 15000); communes[17] = wolstlambert;		Commune wolstpierre("Wol. St Pierre", 9000); communes[18] = wolstpierre;				bool **voisinage;		voisinage = new bool *[n];		for (int i = 0; i < n; i++)			voisinage[i] = new bool[n];		bool row0[]  = {1,0,0,1,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0}; voisinage[0] = row0;		bool row1[]  = {0,1,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,1}; voisinage[1] = row1;		bool row2[]  = {0,0,1,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0}; voisinage[2] = row2;		bool row3[]  = {1,0,0,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,0}; voisinage[3] = row3;		bool row4[]  = {0,1,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,1,1}; voisinage[4] = row4;		bool row5[]  = {0,0,0,1,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0}; voisinage[5] = row5;		bool row6[]  = {1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,1,0,0,0}; voisinage[6] = row6;		bool row7[]  = {0,0,1,0,0,0,0,1,0,1,1,0,0,0,0,0,0,0,0}; voisinage[7] = row7;		bool row8[]  = {0,1,0,1,1,0,1,0,1,0,0,0,1,0,0,1,1,0,0}; voisinage[8] = row8;		bool row9[]  = {0,0,0,1,0,0,0,1,0,1,1,0,0,0,0,0,0,0,0}; voisinage[9] = row9;		bool row10[] = {0,0,1,1,0,0,0,1,0,1,1,1,0,0,0,0,0,0,0}; voisinage[10] = row10;		bool row11[] = {1,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0}; voisinage[11] = row11;		bool row12[] = {1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0}; voisinage[12] = row12;		bool row13[] = {0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0}; voisinage[13] = row13;		bool row14[] = {0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,0,1,0}; voisinage[14] = row14;		bool row15[] = {0,0,0,1,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0}; voisinage[15] = row15;		bool row16[] = {0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0}; voisinage[16] = row16;		bool row17[] = {0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,1,1}; voisinage[17] = row17;		bool row18[] = {0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1}; voisinage[18] = row18;		BitBurger(n, communes, voisinage);