|
From: <ten...@ne...> - 2003-11-06 17:25:18
|
Since ANSI 99 (I think), the use of headers ended in .h is considere obsolete, since they don't use the namespace, a feature included in the headers which have no extension. If you want use the obsolete headers, you can add to the include path the folder /include/c++/3.2/bacward. If you use the modern headers, you have to consider they use namespace (read about them in some book), so you have to either place the line using namespace std; before the code using the standard variables, functions and members, using them preceded with std:: or place the lines using std::the_name_of_function_or_variable_or_whatever_of_the_std_namespace_you'll_use. Don Rutherford wrote: > I am new to C++: I have had a devil of a job to find a compiler to go > with Windows XP. > I thought Dev -C was the answer until I tried it. > It works beautifully for my C progs but even on the shortest C+ progs > (say 7 lines) it flags up a compile error for line 29! > It says: warning - backward error - no such file. > > It will not allow "cout" unless I have #include<iostream.h> > and if I do have that it flags up a red line error. > > Can anyone point out the where the trouble is? > > Regards. |