Hi, I'm a beginner with C++ and I was making a guess the number program, I wanted to add a score system but the way I went about doing it wouldn't work. I feel like I know how to do it yet my brain has gone completely empty! I want the user to start with 100 points, and lose 10 points each time they get the guess wrong (so basically the game would end after all points are gone - though realistically they should get the number correct since the game is only between 1 - 10)
Can anyone help on how to implement the score system? :(
GAME CODE BELOW
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;