hi i am having trouble understanding that what is the difference between having class xxx { } in the .h file and not having it?
say i have these two code, can anyone tell me the difference?
#ifndef sample_h
#define sample_h
class sample {
function1 ();
function2 ();
};
#endif
and
#ifndef sample_h
#define sample_h
function1 ();
function2 ();
#endif