I am new here and I am also new to computer programing in general. Anyways I am having trouble with a line in my program:
cout << '\n' << setw(3) <<num2+2;
The following error comes up in the compiler:
Warning ASP3_1.CPP 17: Ambiguous operators need parentheses in function main()
I totally confused at this point, anybody please help.
P.S. Can anybody recommend a good book about c++ for newbies, my college text book sucks.
Put your num2+2 in parens.
> P.S. Can anybody recommend a good book about c++ for newbies, my college text book sucks.
Precidence of the overloaded operaters don't change, that's why it
might seem a little odd.
Thanx guys, a million.