structure in c and class in c++