Bonjour
Lorsque je compile j'obtiens ces erreurs que je ne comprends pas :

Error E2176 main.cpp 3: Too many types in declaration
Error E2111 main.cpp 4: Type 'plane' may not be defined here
Voici le main.cpp :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
#include"FlyingMachine.h"
#include"plane.h"
void main()
{
  FlyingMachine f= FlyingMachine();
  f.TurnOnEngine();
  f.TakeOff();  //
  f.land();	
 
  plane p= plane();
  p.land();
}
d ou peut venir l'erreur ?