Guys,

I have some structure definition inside my class and it seems to be c like if your using struct so I want to change my style. but what is the best style to do this.

below is my old code:
Qt Code:
  1. class B
  2. {
  3. public:
  4. typedef struct s_A
  5. {
  6. int X;
  7. int Y;
  8. int Z;
  9. } t_A;
  10. protected:
  11. private:
  12. };
To copy to clipboard, switch view to plain text mode 

I want to change this to

Qt Code:
  1. class B
  2. {
  3. public:
  4. class t_A
  5. {
  6. public:
  7. int X;
  8. int Y;
  9. int Z;
  10. } ;
  11. protected:
  12. private:
  13. };
To copy to clipboard, switch view to plain text mode 

is there any advantage using the old struct vs. the class inside a class style?

i want to still scope the class/struc t_A like below at the end of the day.

Qt Code:
  1. B::t_A param;
To copy to clipboard, switch view to plain text mode 

baray98