Search Results

Search: Posts Made By: yifangt
Forum: Programming 09-02-2014
1,584
Posted By yifangt
Almost got your point. I re-wrote the code as: ...
Almost got your point. I re-wrote the code as:
cout << "Line 9: After rolling again (third time), ";
cout << "\ndie1 (die1.roll()): " << die1.roll(); //Line 9 - a1
cout << "\ndie2...
Forum: Programming 08-28-2014
1,584
Posted By yifangt
Thanks! Just to confirm: Did you mean this...
Thanks!
Just to confirm: Did you mean this part in the source code?:
Line 9 ... ... <<"\nthe sum of the numbers rolled [die1.roll() + die2.roll()] is: " << die1.roll() + die2.roll() << endl;...
Forum: Programming 08-28-2014
1,584
Posted By yifangt
C++ Bug probably scope problem
Hello,
I have some difficulty to understand the scope of this program adapted from C++ book of D.S. Malik I am reading.
I put the header and the main program as attachment to save space. My problem...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy