0

Print data "hello" in same form in c++

14th Aug 2018, 3:21 PM
Ämöd Thãplïÿãl
Ämöd Thãplïÿãl - avatar
5 ответов
0
Could you clarify? What form? cout << "hello"; prints out hello
14th Aug 2018, 6:12 PM
Steppenwolf
Steppenwolf - avatar
0
"hello" simply
14th Aug 2018, 6:13 PM
Ämöd Thãplïÿãl
Ämöd Thãplïÿãl - avatar
0
int main { cout << "hello"; return 0; } This is the solution.
14th Aug 2018, 6:18 PM
Steppenwolf
Steppenwolf - avatar
0
but it's print only hello I need to print it as this form "hello" on the output screen
14th Aug 2018, 6:23 PM
Ämöd Thãplïÿãl
Ämöd Thãplïÿãl - avatar
0
Oh, ok I got it. Use backslash to escape characters with a special meaning. This is the solution: cout << "\"Hello\""; 🙂
14th Aug 2018, 6:28 PM
Steppenwolf
Steppenwolf - avatar