Do While Loop problem
| HeatMan (65) | |||
When I tried compile the Do-While Loop tutorial program, the compiler (CodeBlocks) writted:
C:\Codes\C++\C++ Projects\DoWhile.c|12|warning: multi-character character constant| C:\Codes\C++\C++ Projects\DoWhile.c||In function `int main()':| C:\Codes\C++\C++ Projects\DoWhile.c|12|error: expected `;' before '\x2f6e'| C:\Codes\C++\C++ Projects\DoWhile.c|15|error: statement cannot resolve address of overloaded function| ||=== Build finished: 2 errors, 1 warnings ===| Why? Edit: Noticed one error >.>" But the other... | |||
| firedraco (657) | |||
cout << "You entered" << n << "!"'/n';You are probably trying to do this:
cout << "You entered" << n << "!\n";There is no need to surround them with '', just put it directly into the string. Also, your escape \ was the incorrect one. | |||
| HeatMan (65) | |||
| Ok :) Thanks! | |||
This topic is archived - New replies not allowed.
