0
Print data "hello" in same form in c++
5 Respostas
0
Could you clarify? What form?
cout << "hello"; prints out hello
0
"hello" simply
0
int main {
cout << "hello";
return 0;
}
This is the solution.
0
but it's print only hello I need to print it as this form "hello" on the output screen
0
Oh, ok I got it.
Use backslash to escape characters with a special meaning. This is the solution:
cout << "\"Hello\"";
🙂