0
All \n for every cout should be set in one line. Isn't it?
12 ответов
+ 2
No, you can put as many of that as you want into a string, wherever you need them.
cout << "We go on\n\nafter an empty line!";
+ 2
You have forgotten the closing ".
+ 2
Whatever you want to output, has to be enclosed within these two ".
And the line break, which you write \n, is no exception.
+ 1
Sorry for typing error but Even if i put it after (there?)
0
Yes but all of them should be on one line. Right?
0
\n mean ends the line which u r in
Then move to next line prints the contant
Cout<<"this is sandhya\ndasari";
Output:
this is sandhya
dasari
0
For this:
int main ()
{
cout << " Whats \n up \n
there?
return 0;
}
It gives me this error: missing terminating character
0
At the line beginning with cout
0
At the end of cout place " and ;