int Seats::AddEntry()
{
std::cout << "Please enter your desired seat position";
std::cout << endl;
std::cin >> position;
ofstream SaveFile("Traveler.txt",ios::in);
SaveFile << "Your Seat postion is...:";
SaveFile << endl;
SaveFile >> position;
SaveFile.close();
return 0;
}
This is just a snippit of my code...This function is one of 3 member functions that when I compile an error statement comes up for all 3 that:
'Seats::ViewEntry' : local function definitions are illegal
and....
this line contains a '{' which has not yet been matched
Please can you help me find the error...I figured if all three had the same error then maybe fixing one would help me to fix the others