Menu

std::string HighScoreFile = “HighScores.csv”; try { std::vector highScores = HighScore::LoadHighScores(HighScoreFile); // … use the highScores vector } catch (const std::exception& e) { std::cer…

std::string HighScoreFile = “HighScores.csv”;
try {
std::vector highScores = HighScore::LoadHighScores(HighScoreFile);

// … use the highScores vector
}
catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl; // Handle the error gracefully or terminate the program return 1; } return 0;

OR