Revision.h 746 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef REVISION_H
  2. #define REVISION_H
  3. #include <iostream>
  4. #include <string>
  5. #include <queue>
  6. #include <fstream>
  7. #include <cstdlib>
  8. #include <ctime>
  9. class Verb
  10. {
  11. public:
  12. Verb( std::string mot[4] );
  13. void afficher( unsigned int hide );
  14. std::string get( unsigned int select );
  15. private:
  16. std::string m_mot[4];
  17. };
  18. class Revision
  19. {
  20. public:
  21. Revision();
  22. virtual ~Revision();
  23. bool load( std::string file );// Renvoie succès ou echec
  24. void afficher();
  25. bool corriger( std::string saisie[3] );// Renvoie false si le test est terminé
  26. protected:
  27. unsigned int m_total;
  28. std::queue<Verb*> m_file;
  29. unsigned int m_select;
  30. };
  31. #endif // REVISION_H