You are writing "Cout" not "cout" - C++ is case sensitive, so those two are not the same thing.
You should write std::cout
since the cout
stream lives in the std
namespace.
The same goes for endl
which should be std::endl
.
You could avoid writing std::
by using using namespace std;
but I wouldn't advice it - it pulls all of the namespace into the current scope which may not hurt for a trivial program will bite for a more complex one (at the very least, don't do it in headers).
Just do this:
#include <iostream>
int main(){
Sally so;
std::cout << "omg wtf is this on my shoe" << std::endl;
}
Btw; unless you know you want to flush the stream, prefer '\n'
over std::endl
.