using namespace std: makes it possible to call/use functions within standardized headers like <iostream>.
If you dont type it youll have to add std::
like this std::cin or std::endl etc...
endl is just like /n plus it flush the buffer..
so it will act like enter... just change line..