C++ Graphique

Hello every body, i have really a serious problem with a homework:

i have to create a graph, and i have the declarations in Graphique.hpp et I have to write the definitions,
i have the function
void plot(const Functor& inFct, ColorName inColor=eBlack);
and i have to define it to have 3 graphiques which it is:

class Fct1 : public Functor {
public:
Fct1() : Functor("f(x) = x") {}
double operator()(double inX) const {return inX;}
};

class Fct2 : public Functor {
public:
Fct2() : Functor("f(x) = x^2") {}
double operator()(double inX) const {return inX*inX;}
};

class Fct3 : public Functor {
public:
Fct3() : Functor("f(x) = x^3") {}
double operator()(double inX) const {return inX*inX*inX;}
};

the question is how can i define the function what can i write?

i same the same question with the function:

void makeYAxis(const std::string& inLabel, int inTics);

that provide to create the axis...

thank you and plzz help me!

Topic archived. No new replies allowed.