1. When you write "using namespace std", you are telling the program
to include the standard library. This way instead of typing "std::cout
<< "hi" << std::endl;" you can just type "cout << "hi" << endl;".
2. returning 0 ends the function. any function that is not labeled
void, needs to return something. The main() method in c++ generally is
written "int main()" notice the int at the beginning, this is the
return type (what the function need to return). You could also say
"bool main()" and just return a boolean value (true or false).
Feel free email me with any questions you have!
-Tom