OK now I'm learning C++ as well as eiffel.
Typing std::cout all the time is annoying, and according to the book I'm using I should be able to avoid this by putting "using std::cout;" or "using namespace std;" at the top of my program just below "int main()" and the "{". But when I go to do g++ program.cpp I get a compiler error -
Is this just because I am using an old compiler? It's on my Universities Solaris boxes.
Heres the actual (no laughing this is my first day!) file:
edit:everything bar the "using" lines is a copy of another file, cout_easy.cpp with the "std::" parts removed, and that compiled fine.
Also is there a nice way to compile it and have the binary come out with the same name as the source file minus the ".cpp"? It gets annoying having to do "mv a.out [new_name]" all the time.
[ May 11, 2003: Message edited by: Faust ]