can i suggest structs if you are going to be making similar data structures to this example. classes have the benefit of having a private section which is usually used to place all the variables. example
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
//included library
class me{
private://variables here
int a, b;
public://functions here
int returnA(){return a;}
int returnB(){return b;}
me();
}
me::me(){//contructor;
int a = 10;
int b = 10;
}