Code:
cout,,"largest="<<largest<<"negative="<<negative<<endl;
<<"sum="<<sum<<endl;
Should be (semicolon, ,, should be <<):
Code:
cout << "largest=" << largest << "negative=" << negative << endl
<< "sum=" << sum << endl;
And this:
Code:
using namespace std
int main(int, argc, char*, argv[])
Should be (semicolon, datatype name):
Code:
using namespace std;
int main(int argc, char* argv[])
A GREAT book is:
The Complete Reference for C++ 3rd Edition
By: Herbert Schildt
Have fun and be careful with your semicolons!