Struct and class are the same apart from struct is public by default and class is private as default:
(It's address btw)
I suggest you do some tutorials on how to use them rather than using them exactly as BB does, as there are bound to be some differences you should be aware of.
struct adress { int age; }; int main() { adress martin; martin.age = 16; cout << martin.age; cin.get(); }
(It's address btw)
I suggest you do some tutorials on how to use them rather than using them exactly as BB does, as there are bound to be some differences you should be aware of.