Structure
The major differences in C++ between a strunct and a class is that the access is by default public rather than private as in classes.
// holds an int, a double, AND a pointer
struct myStruct {
int i;
double d;
anObject * p;
};
Previous slide
Next slide
Back to first slide
View graphic version