Hello all,

On Thu, 25.05.2006 at 19:23:20 +0000, Steffen Wendzel <[EMAIL PROTECTED]> wrote:
> #include <iostream.h>
> using namepsace std;

I'd like to resolve the question and report my findings:

* Deleting everything under /usr/include and then reextracting
  comp39.tgz was the first step that made the program compile. Thank
  you, Kurt!

* Simply changing

  #include "iostream.h"

  to

  #include <iostream>

  didn't yield success, but bails out with two undefined identifiers
  'cout' and 'endl'. Adding "using namespace std;" doesn't help.

* Wikipedia yielded the correct solution to also add

  #include <ostream> // for std::cout and std::endl

  which can then be used by writing either std::cout, or instead having
  a namespace declaration in front (that came after my time, thanks,
  Steffen!).

Now, what's the recommended books for C++ these days?



Best,
--Toni++

Reply via email to