Command Line Game Need Help

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.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <cstdlib>
#include <iostream>
#include <string>
#include <sstream>

int PrintIntro();
using namespace 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;
     }
}
Line 6: You define the function prototype as taking no arguments.
Line 21: Your implementation takes two arguments.

Your function prototype and function implementation MUST agree.
Topic archived. No new replies allowed.