View Single Post
Old Nov 15th, 2006, 1:45 AM   #2
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 894
Rep Power: 4 The Dark is on a distinguished road
Yes you are calling playOneRound twice. The first time you are ignoring the return value and the second time you are outputting the value.
Either drop thefirst call altogether, or save the return code from the first call.
E.g. you change your code to
		 int result = playOneRound (myRand(10));
		 cout << result << endl;
The Dark is offline   Reply With Quote