struct and class are both the same thing in C++. With one minor caveat. The default access specifier for members of a class is private. the default access specifier for members of a struct is public. Otherwise, they're identical.
struct was inherited from 'C', which had no notion of OOP or classes, so, as a tradition/convention, the struct keyword is only used when the struct only contains data (And maybe some extremely trivial constructors or methods). eg, a coordinate struct for holding 2D 'x' and 'y' values in a graph
Code:
struct coordinate
{
int x;
int y;
coordinate(int xx, int yy)
{
x = xx;
y = yy;
}
}; //Don't forget the semicolon