Menu

I am confused

Anonymous
2002-05-23
2012-09-26
  • Anonymous

    Anonymous - 2002-05-23

    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)

     
    • Anonymous

      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)???)
      }

       

Log in to post a comment.