+ 2
What is wrong?
in c++ I wanted to print "hello, @how are you?". I did #include <iostream> using namespace std; int main ( ) { cout << hello, how are you? << endl; return 0; } but it says: line 5: 'hello' was not included in cout << hello, how are you? << endl; line 5: 'how' was not included in cout << hello, how are you? << endl; line 5: 'are' was not included in cout << hello, how are you? << endl; line 5: 'you' was not included in cout << hello, how are you? << endl; what can I do?
4 Respuestas
+ 2
add double quote " " to make it a valid string.
+ 1
hey Edwin ,
#include <iostream>
using namespace std;
int main ( ) {
cout << "hello, how are you?" << endl;
return 0;
}
Used quotation in cout ..
" Hello , How are you ?" -- we should treat it as string ..
Hope now its work fine ...
+ 1
"" are used to make valid string..
0
Only add double quote in "Hello, how are you?"