| Thread Closed |
The following C++ program does not compile |
Share Thread | Thread Tools |
| Sep14-08, 10:34 PM | #1 |
|
|
The following C++ program does not compile
cout << "2 + 3 * 5 = " 2+3*5 << endl;
do I just need to put it as cout << "2 + 3 * 5=" << (2+3*5) << endl; |
| Sep14-08, 10:52 PM | #2 |
|
Blog Entries: 14
|
Why don't you simply compile the second, run and test it? ooO, does the second one also throws error? |
| Sep14-08, 11:32 PM | #3 |
|
Recognitions:
|
I'm pretty sure you can't mix string output together with variables. You must separate them into with <<.
|
| Thread Closed |
| Thread Tools | |
Similar Threads for: The following C++ program does not compile
|
||||
| Thread | Forum | Replies | ||
| JAVA: Why won't it compile? | Programming & Comp Sci | 3 | ||
| Java compile problems | Programming & Comp Sci | 2 | ||
| Java program won't compile.. | Engineering, Comp Sci, & Technology Homework | 2 | ||
| compile open office on mac | Computing & Technology | 1 | ||
| Help me compile a physics software list | General Discussion | 16 | ||