For some reason while compiling my source I get a parce error at the end of my code. the only thing on the line is the final bracket I will put the int main( ) below can someone tell me why this parse error keeps happening it is the only line in my source that has and error and I want to get to the debugging process but I need to get past this and I am stumped. Thanx for your help in advance.
int main();
{ char k;
cout<<"********Welcome to EXPERMENT PROGRAM 1 *********************";
cin>>k;
if (k=(char)"2")
{ login();
}
else
{ signup();}
} (<----------Here On this line is the error it is a 66
parse error at end of input)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-05-24
nt main(); (<---- " ; " is not correct)
{
char k;
cout<<"********Welcome to EXPERMENT ROGRAM 1 *********************";
cin>>k;
if (k=(char)"2") (<--- should be == not =)
{
login();
}
else
{
signup();
}
(<--- if "int main()" where is the return somthing(int)???)
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For some reason while compiling my source I get a parce error at the end of my code. the only thing on the line is the final bracket I will put the int main( ) below can someone tell me why this parse error keeps happening it is the only line in my source that has and error and I want to get to the debugging process but I need to get past this and I am stumped. Thanx for your help in advance.
int main();
{ char k;
cout<<"********Welcome to EXPERMENT PROGRAM 1 *********************";
cin>>k;
if (k=(char)"2")
{ login();
}
else
{ signup();}
} (<----------Here On this line is the error it is a 66
parse error at end of input)
nt main(); (<---- " ; " is not correct)
{
char k;
cout<<"********Welcome to EXPERMENT ROGRAM 1 *********************";
cin>>k;
if (k=(char)"2") (<--- should be == not =)
{
login();
}
else
{
signup();
}
(<--- if "int main()" where is the return somthing(int)???)
}