•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 456,508 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,673 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 515 | Replies: 4
![]() |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Sorry about that, here is what I have managed so far.
Prompt user for 3 values
int score_1, score_2, player;
player = 1,2;
if (winner = 1) then
score_1 = score_1 +15
else
score_2 = score_2 +15
if score_1, score_2 >= 40 then
game
End if;
I'm thinking I use else so if player 2 wins then he gets the +15 score instead of adding another if statement.
Prompt user for 3 values
int score_1, score_2, player;
player = 1,2;
if (winner = 1) then
score_1 = score_1 +15
else
score_2 = score_2 +15
if score_1, score_2 >= 40 then
game
End if;
I'm thinking I use else so if player 2 wins then he gets the +15 score instead of adding another if statement.
Last edited by icecube : Sep 27th, 2007 at 12:34 pm.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Pseudo codes help! (Computer Science and Software Design)
- Writing pseudo-codes/developing flowcharts (Computer Science and Software Design)
- Hotmail 'Match the characters' Error and failed log-in (Web Browsers)
- Pseudo Code (Computer Science and Software Design)
- Desiging a set of rules for a match (C++)
Other Threads in the C++ Forum
- Previous Thread: how to create a ramp image
- Next Thread: Linked List problem



Linear Mode