hello, i'm trying to create subclasses to a class, but i get the same error to all my subclasses: expected class-name before*'{' token. Ive checked on other threads and site since it seems that this problem is very common. here is my code:

MoyenDeTransport.h:
Qt Code:
  1. class MoyenDeTransport
  2. {
  3. double litre;
  4. public:
  5. MoyenDeTransport(double);
  6. double getLitre();
  7. //void parcourir(int distance);
  8.  
  9. };
To copy to clipboard, switch view to plain text mode 

and here is my subclass:
Camion

Qt Code:
  1. class Camion: public MoyenDeTransport
  2. {
  3. public:
  4. Camion();
  5. };
To copy to clipboard, switch view to plain text mode 

as a matter of fact, i get one warning and one error:

warning: In File included from camion.cpp:1,
error: expected class-name before*'{' token

here is my camion.cpp:
Qt Code:
  1. #include "camion.h"
  2.  
  3. Camion::Camion()
  4. {
  5. }
To copy to clipboard, switch view to plain text mode 

and just in case, here is my MoyenDeTransport.cpp:

Qt Code:
  1. #include "moyendetransport.h"
  2.  
  3. MoyenDeTransport::MoyenDeTransport(double ammount)
  4. {
  5. litre = ammount;
  6. }
To copy to clipboard, switch view to plain text mode 


I dont think i'm doing anything flagrantly wrong, but i'm sure its one small thing that i'm missing...

What do you guys think?

Paat