Surgery

Pages: 12
By trickery...literally. Observe:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
	for( int k = 0; k < PLAYERCOUNT; k++)
	{
		 cout << setw(13) << "Hand for ";
		 // We just assume playersName is 7 characters long
		 cout << setw(7) <<  playersName[k];
		 cout << setw(5) << " is : ";
		 hand[k].display(); cout << ' ';
		 hand[k + PLAYERCOUNT].display();
		 // 24 characters wide
		 cout << setw(25);
		 cout << " Value for this hand is : " << 
		 playerStat[k] << endl;
	}
	 cout << endl << endl;
}


See how that looks. If you really want to get fancy, you can use strlen to figure out the length of the player's name and calculate the width exactly.
Last edited on
Whew, I'm done for the night thanks for all of the help. I will modify that some more tomorrow. THANK YOU !!!!!!!!!!!!
Topic archived. No new replies allowed.
Pages: 12