noob need helps

i need help with this problem
thanks guys

here the code
#include
#include
int main(int nNumberofArgs, char* pszArgs[])
{
// prompts te user for three numbers
// and the find the sum
int aNumber;

cout <<"input one number";

cin >>"aNumber";

int aNumber1;

cout <<"input another number";

cin >>"aNumber1"

int aNumber2;

cout <<"input one more number";

cin >>"aNumber2";

int aNumber3;

aNumber3 = aNumber + aNumber1 + aNumber2;

cout <<"the sum is";

cin >>"aNumber3";

return 0;
}

i get this error
My Documentssum.cpp(19) : error C2144: syntax error : missing ';' before type 'int'
what did i do wrong?

Comments

  • its missing a semicolon on the line just above that one.
  • hey dear, change ur cin statments..
    cin>>aNumber;
    mean cut the double quotes..."" ohh wao...




    : i need help with this problem
    : thanks guys
    :
    : here the code
    : #include
    : #include
    : int main(int nNumberofArgs, char* pszArgs[])
    : {
    : // prompts te user for three numbers
    : // and the find the sum
    : int aNumber;
    :
    : cout <<"input one number";
    :
    :// cin >>"aNumber";
    :
    : int aNumber1;
    :
    : cout <<"input another number";
    :
    : cin >>"aNumber1"
    :
    : int aNumber2;
    :
    : cout <<"input one more number";
    :
    : cin >>"aNumber2";
    :
    : int aNumber3;
    :
    : aNumber3 = aNumber + aNumber1 + aNumber2;
    :
    : cout <<"the sum is";
    :
    : cin >>"aNumber3";
    :
    : return 0;
    : }
    :
    : i get this error
    : My Documentssum.cpp(19) : error C2144: syntax error : missing ';' before type 'int'
    : what did i do wrong?
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories