This is what I got when I tried to compile it.. >
test.cpp:15: error: ‘cout’ was not declared in this scope
This is what I got when I tried to compile it.. >
test.cpp:15: error: ‘cout’ was not declared in this scope
You should #include <iostream>. Also, keep in mind that cout is from the std namespace.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)