error with io stream

Posted by Alexander on Stack Overflow See other posts from Stack Overflow or by Alexander
Published on 2010-04-11T15:07:32Z Indexed on 2010/04/11 15:13 UTC
Read the original article Hit count: 379

Filed under:

What is the problem with the last two statements in the code?

#include <iostream>
using namespace std;
int main()
{
cout << "2 + 4 = " << 2 + 4 << endl;
cout << "2 * 4 = " << 2 * 4 << endl;
cout << "2 | 4 = " << 2 | 4 << endl;
cout << "2 & 4 = " << 2 & 4 << endl;

What should I do to fix this?

© Stack Overflow or respective owner

Related posts about c++