Hello, I'm new to coding and I have to make a game where it has to keep the best score after playing it a couple times, how do I do this? I already have the code for the game, I just don't know what to do to make it store the best score.
use fstream. and write the score to a file then use that file as input to ask for the score and if your new score is greater than rewrite the file to store the new best score