Grille.cpp: In constructor ‘Grille::Grille()’:
Grille.cpp:14: error: invalid use of incomplete type ‘struct Case’
Grille.h:5: error: forward declaration of ‘struct Case’
Grille.cpp:23: error: invalid use of incomplete type ‘struct Case’
Grille.h:5: error: forward declaration of ‘struct Case’
Grille.cpp:23: error: invalid use of incomplete type ‘struct Case’
Grille.h:5: error: forward declaration of ‘struct Case’
In file included from Itineraire.cpp:1:
Itineraire.h:12: error: ISO C++ forbids declaration of ‘list’ with no type
Itineraire.h:12: error: expected ‘;’ before ‘<’ token
Main.cpp:4:20: error: conio.h: Aucun fichier ou dossier de ce type
In file included from Main.cpp:3:
Itineraire.h:12: error: ISO C++ forbids declaration of ‘EltObsatcle’ with no type
Itineraire.h:12: error: cannot define member function ‘std::list<Case*, std::allocator<Case*> >::EltObsatcle’ within ‘Itineraire’
In file included from Main.cpp:5:
Case.h:1: error: redefinition of ‘class Case’
Case.h:3: error: previous definition of ‘class Case’
Main.cpp: In function ‘int main()’:
Main.cpp:11: error: ‘getch’ was not declared in this scope
Robot.cpp: In member function ‘bool Robot::presenceObstacle(int, int) const’:
Robot.cpp:32: error: invalid use of incomplete type ‘struct Case’
Grille.h:5: error: forward declaration of ‘struct Case’
Robot.cpp:32: error: invalid use of incomplete type ‘struct Case’
Grille.h:5: error: forward declaration of ‘struct Case’
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionquand j'ai enlevé ce conio.h voilà redefinition of `class Case'
avec system("PAUSE"); ça fonctionne !!!!
std::cin.ignore(1024, '\n'); std::cout << "Press enter to continue..."; std::cin.get();
#include void pause() { std::cin.ignore(1024, '\n'); std::cout << "Press enter to continue..."; std::cin.get(); } int main() { // Code pause(); return 0; }