Talk About Network

Google





Programming > C - C++ Learning > Re: c++, unqual...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< 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:
c++, unqualified-id before
disinfo <spikehead@[EM  2008-04-08 11:03:56 
Re: c++, unqualified-id before
"osmium" <r1  2008-04-08 06:16:08 
Re: c++, unqualified-id before
disinfo <spikehead@[EM  2008-04-08 14:43:25 
Re: c++, unqualified-id before
Ulrich Eckhardt <dooms  2008-04-08 20:51:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 9:36:52 PST 2009.