Well you just need to declare your functions in your class.
#ifndef MYCLASS_H
#define MYCLASS_H
class MyClass
{
private :
int value;
float value_float;
void foo (); // private function of this class
public :
// constructors
MyClass ();
MyClass ( const int& );
//public functions of your class
void func_1 ();
int getValue ();
};
#endif // MYCLASS_H
Now in your cpp file, you can define your functions.
int MyClass::getValue ()
{
return value;
}
This might helps. Hope I did not misunderstood you. Sorry if I did.
LRRR
Junior Poster in Training
55 posts since Dec 2011
Reputation Points: 22
Solved Threads: 15