Hello Again, World!
* Just another way to do it.
// Say it now.
std::cout << "Greetings, local planet!"
This just a couple of different things. In particular, instead of saying
using namespace std;, I have used the std:: qualifier on the
the names from the libraries. This is essentially the full name:
std::cout is cout of the family std, which is the standard
I've also put the print across two lines. You probably already figured out that
that would work.
The other thing is the return statement from main. In C++,
main returns an integer, so it is most correct to have a return
statement at the end.
There is a long story here which I will avoid right now. For the present:
So usually folks just leave it out.
- It doesn't do anything very important.
- Nothing bad happens if you leave it out.