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 33
|
/************Expression.h*************/
#ifndef DEF_EXPRESSION
#define DEF_EXPRESSION
#include <iostream>
#include "fraction.h"
#include "ElementListe.h"
using namespace std;
class Expression{
public:
Expression();
Expression(const Expression& e);
Expression& insert(Fraction val);
ElementListe *getDebut();
int getTaille();
void affiche();
Fraction& somme();
Expression& trier1();
Expression& trier2();
~Expression();
private:
int taille;
ElementListe *debut;
ElementListe *fin;
};
istream& operator>>(istream& is, Expression& expr);
ostream& operator<<(ostream& os, Expression& expr);
#endif |
Partager