c++ - problem of embed struct ?
- budzhang (21/21) Jan 27 2005 hi,
hi, when i compile the follow code ,there has a complie error. the version of dmc is 8.41n. budzhang 2005-1-27 =================================================================== #include <stdio.h> struct outer { int i; struct iner{ int j; }; }; void main() { struct outer::iner ss; // compile error outer::iner ss2; // this is ok ss.j = 1; printf("ss.j=%d\n", ss.j); } // ========================end of file ================================
Jan 27 2005