| << Topic |
< Post |
Post 4 of 4 Topic 4097 of 4400
|
Post > |
Topic >> |
Re: c++, unqualified-id before
by Ulrich Eckhardt <doomster@[EMAIL PROTECTED]
>
Apr 8, 2008 at 08:51 PM
|
disinfo wrote:
> Code conversion.h:
>
> using namespace std;
Ahem, you haven't included any header that uses anything from namespace
std,
so what is this doing there?
> #include <iostream.h>
If you are learning from a book or any kind of tutorial, you should
definitely dump that book, because it is trying to teach you code in a
dialect that predates the C++ standard, which is almost ten years old. In
other words, the tutorial is for sure not up to date. The standard-conform
equivalent to the above is
#include <iostream>
> with g++ C.* I recive the following error:
_ALWAYS_ turn on warnings and always make sure you understand them before
you ignore them. For GCC that is with '-Wall'.
Uli


|
4 Posts in Topic:
|
disinfo <spikehead@[EM |
2008-04-08 11:03:56 |
|
"osmium" <r1 |
2008-04-08 06:16:08 |
|
disinfo <spikehead@[EM |
2008-04-08 14:43:25 |
|
Ulrich Eckhardt <dooms |
2008-04-08 20:51:49 |
|
Post A Reply:

|