so, for my homework, I got to do this project which works like a database with people. I just started and I already got stuck. In the startup menu, I ask the user to enter what they want to do and put it in a string.
1 2 3
cout << "What do you want to do?: ";
cin >> option;
Then, I check if what the user typed was "displayall", and thats where the problem comes.
1 2 3 4
// do stuff
I get an error on this line when I try to compile it:
53 C:\Dev-Cpp\Projects\For School\Database\database.cpp no matching function for call to `strcmp(std::string&, constchar)'
Do you guys know why this is happening? I included string.h at the top.