Advertisement
Guest User

Brandi Sumey - UpdateCount()

a guest
Apr 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. /* Unit 5 Case Study Function updatecount()
  2. Brandi Sumey 2017 */
  3.  
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. void updatecount(int winner, int &compwins, int &userwins)
  9. {
  10.  
  11. if (winner = 1)
  12. {
  13. compwins += 1;
  14. }
  15.  
  16. else if (winner = 2)
  17. {
  18. userwins += 1;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement