I am having so much trouble with this part of my project. How do I use the if statement to see if the player's name matches the string "BLANK"? Can anyone help me please?
This is what it is asking me to do:
loadData()- This function will load data from a text file that has been saved only if a previous session’s data was saved to the file. To track this, the player's default name must be "BLANK" (all uppercase). You can than use an if statement to see if the player's name matches that string "BLANK". If it does, you know the player shouldn't be allowed to input the continue option and must start a new game. Display that error message and set the option to new game. If data loads successfully from the last session, display it out to the screen.
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int startMenu(int);
bool menuInputValidation(int);
string saveData(string);
string loadData(string);