1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#ifndef ExerciceH
#define ExerciceH
#include "Probleme.h"
template <class Type1,class Type2>
class Exercice
{
private :
typedef Type1 type_1;
typedef Type2 type_2;
Probleme<type_1, type_2> *m_probleme;
std::vector<type_1> m_proposition;
std::vector<type_2> m_solution;
public :
Exercice(): m_probleme(new Probleme<type_1, type_2>),m_proposition(4), m_solution(4)
{
}
Exercice(const Probleme<type_1, type_2>& probleme): m_probleme(& probleme),m_proposition(4), m_solution(4)
{
}
~Exercice()
{
delete m_probleme;
}
};
#endif |