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
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?
:
: