Quote Originally Posted by Wybiral View Post
You also need to...

Code:
using namespace std;
After "#include <iostream>"

Because it is in the "std" namespace, otherwise you will have to use "std::cout" and "std::endl" instead of the normal "cout" and "endl"
It is generally adviced not to open up the whole std; namespace (especially, but not limited, opening std in header files).

Please refer to: http://www.parashift.com/c++-faq-lit....html#faq-27.5

For temporary programs it doesn't matter, but one can just as well adopt good habits right away, and use std::cout << "sausage" << std::endl;