I am new to C++. I am trying to create a command line hacker game for fun. When I run the code below I get the following error message "main.cpp: In function `int main()':
main.cpp:6: error: too many arguments to function `int PrintIntro()'
main.cpp:16: error: at this point in file
make.exe: *** [main.o] Error 1
Execution terminated"
Any help understanding the issue would be greatly appreciated.
#include <cstdlib>
#include <iostream>
#include <string>
#include <sstream>
int PrintIntro();
usingnamespace std;
int main()
{
string Input;
string Help = "Help";
PrintIntro(Input, Help);
system("PAUSE");
return EXIT_SUCCESS;
}
int PrintIntro(string& Input, string& Help){
cout <<"A fatal error has occured resulting in a User Interface (UI) failure."<< endl;
cout <<"The system will now try to restore the UI"<< endl;
system("PAUSE");
cout <<"The User Interface is non functional"<< endl;
cout <<"Command Line Mode ACTIVE"<< endl;
cout <<"Please Type Help below"<< endl;
cin >> Input;
if (Input == Help){
cout <<"Help menu not responding"<< endl;
//return 1;
}
else {
cout <<"Command Not Recognized"<< endl;
}
}