I'm trying to assign a variable or attribute of an object in C++ and am unsure as to how to do this.
class ClassA{
public:
double a,b,c,d,e,f;
};
ClassA * example = new ClassA;
example.a =.01;
Why do I need to include the '*' in defining the object 'example' (I got this through another tutorial). How do I correct this to correctly set the values of a, b, c, d, e, f for the object 'example'