What does this mean?

Hello,

What does this sentence mean?

Rewrite the Hello, world! program so that a newline occurs everywhere that whitespace
is allowed in the program.

closed account (3CXz8vqX)
O.o whut!?

Okay that's darn confusing. Show me the code.
I think it means what it says.

1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
int
main
(
)
{
std::cout
<<
"Hello, world!"
;
}


Strangely enough I have heard/red that sentence before. You don't happen to learn c++ from a book called C++ How to program by D&D?
Last edited on
The book is Accelerated C++.
I found out I have to make as many whitespaces as possible. The answer given by a guy above, was correct, but it is possible to get even more whitespaces.
Thank you all
The answer given by a guy above, was correct, but it is possible to get even more whitespaces.


I suppose whitespace is allowed in std :: cout. =/
I finished it.
Here is what I did!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>

int 
main
(
)
{
std
::
cout
<<
"Hello, world!"
<< 
std
::
endl;
system
("pause");
return 0;
}
Topic archived. No new replies allowed.