Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void tulostaLauta ( vector<vector<Ruutu>> lauta, int kiv1, int kivi2 ) {
- int nytkivi=0;
- int x=0;
- int y=0;
- for(y=0;y<5;++y) {
- for(x=0;x<5;++x) {
- nytkivi = lauta.at(y).at(x).kivi;
- if(ntykivi != 0 && (nytkivi == kivi1 || nytkivi == kivi2))
- cout << nytkivi;
- else if(nytkivi>0)
- cout << "#";
- else if(nytkivi<0)
- cout << "O";
- else
- cout << ".";
- if (x!=4)
- cout << " ";
- } // for x
- cout endl;
- } // for y
- } // tulostaLauta()
Add Comment
Please, Sign In to add comment