+ 1
Could anyone help me how to deal struct , class ?
I just want to know how to use struct inside of class and relation among them!
2 ответов
0
Struck inside of a class? I believe that you come from the C language, in C++ you don't need struct anymore.The only difference between struct and class is that in a struct a default field is public and in a class a default field is private. You can as a field of any class have whatever you want( another class if you want so).
0
yes thanks answer ! but how do we use struct inside of the class? this is real question!