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 2 of 4 Topic 4097 of 4400
Post > Topic >>

Re: c++, unqualified-id before

by "osmium" <r124c4u102@[EMAIL PROTECTED] > Apr 8, 2008 at 06:16 AM

"disinfo" wrote:

> I ve this two file:
>
> Conversion.h, conversion.cpp
>
> Code conversion.h:
>
> using namespace std;
> class Conversion
> {
>  public:
>  Conversion();
> };
>
> Code Conversion.cpp
>
> #include <iostream.h>
> #include "Conversion.h"
> using namespace std;
>
> Conversion()

You have to tell the compiler what class this function belongs to.  Change

to
  Conversion::Conversion()
> {
>  cout << "test";
> }
>
> with g++ C.* I recive the following error:
> Conversion.cpp:4: error: expected unqualified-id before ')' token
>
> I really don't understand where is my mistake.
> Any help will be very appreciate :)
>
> Thanks
>
> Disinfo
 




 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 12:34:36 PST 2009.