Help me

so im very new to this stuff but that \n should put it in the next line and all but if i write this the endl isnt working, its not green like normal but blue like a text. i wantet to make a street with text but what did i do wrong.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
 #include <iostream>

using namespace std;

int main()
{
   cout << "    / | \\n   /  |  \\n  /   |   \\n /    |    \\n/     |     \" << endl;




    return 0;
}
 
You need to add another backslash to the last backslash then in should work
Topic archived. No new replies allowed.