Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Unit 5 Case Study Function updatecount()
- Brandi Sumey 2017 */
- #include <iostream>
- using namespace std;
- void updatecount(int winner, int &compwins, int &userwins)
- {
- if (winner = 1)
- {
- compwins += 1;
- }
- else if (winner = 2)
- {
- userwins += 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement