|
|
вернуться в форумОбщий форумC++ includes fail Hi everyone. On 30 Apr 2001, Marat Bakirov posted a list of include files for C and C++. But it doesn't work. I used the following at top of my program: #include <iostream> #include <complex> #include <cstdio> using namespace std; Could please somebody explain how to correctly include those headers? Thanks in advance, Stefan Pochmann Re: C++ includes fail Ok, I tried a lot and failed every time. It is possible to include some headers when the extension ".h" is explicitly given: #include <iostream.h> This should work without the extension, too (assuming a standard C++ compiler), but it's ok. The bigger problem is that I just can't include <algorithm>. I think there's a problem with the compiler installation, so I ask the admins to fix it or tell me how to work around this. Or does anybody else have a hint for me? Stroustrap, g++ and uva.es all think that #include <algorithm> is ok, so I'm very disappointed and won't try any further until somebody tells me how to do it at timus. Stefan Pochmann |
|
|