Home > Back-end >  Unable to call the function.
Unable to call the function.

Time:11-27

#include
using namespace std;
Int main ()
{
Cout & lt; <"Enter the password for six:" & lt; Int a;
A=345678;
Cin & gt;> a;
If (a!=345678) cout & lt; <" Wrong oh ";
The else cout & lt; <"This is a useless program"
Int (e);
}

Int (e)
{
Cout & lt; <"Qq" & lt; Cout & lt; <"QQQQQ" & lt; return 0;
}
//why int (e) unable to call

CodePudding user response:

If the function to write after the main function is to write the function prototype before the main function

CodePudding user response:

Thank you very much! Know that!

CodePudding user response:

//sure?
#include
using namespace std;
Int main ()
{
Cout & lt; <"Enter the password for six:" & lt; Int a;
A=345678;
Cin & gt;> a;
If (a!=345678) cout & lt; <" Wrong oh ";
The else cout & lt; <"This is a useless program"
Int (e); Int (e);
}

Int (e)
{
Cout & lt; <"Qq" & lt; Cout & lt; <"QQQQQ" & lt; return 0;
}
//why int (e) unable to call

CodePudding user response:

Call is e ()

CodePudding user response:

 # include & lt; iostream> 
using namespace std;

Int (e)
{
Cout & lt; <"Qq" & lt; Cout & lt; <"QQQQQ" & lt; return 0;
}

Int main ()
{
Cout & lt; <"Enter the password for six:" & lt; Int a;
A=345678;
Cin & gt;> a;
If (a!=345678) cout & lt; <" Wrong oh ";
The else cout & lt; <"This is a useless program"
(e);
}
  • Related