some curious problems

Maybe you can give me an example on how I could make a nice Get method to retrieve the data?

public:
    int getRadVal() { return RedVal; }
    void setRedVal(int newRedVal) { RedVal = newRedVal; }

private:
    int RedVal;

Normally, I don't like code in the header file, but for simple setters and getters, it's OK.