Feb 13, 2013 at 6:22pm UTC
what does ambiguous operators need parenthesis in funtion main() error mean in turbo c++
Feb 13, 2013 at 6:24pm UTC
Can you give a code example?
Feb 13, 2013 at 6:31pm UTC
void main()
{
int x=2,y=3,z;
cout << x;
cout << x + x;
cout << "x=";
cout << "x = " << x;
cout << x + y << " = " << y + x;
z = x + y;
cin >> x >> y;
cout << "\n";
}
Feb 13, 2013 at 6:36pm UTC
Maybe you have to put parentheses like this: cout << (x + x);
This shouldn't be necessary but Turbo C++ is old and pre-standard so I wouldn't be surprised.
Feb 13, 2013 at 6:39pm UTC
thanks i know this but give me solid explanation for writing assighment