typedef struct is actually the C way to do this. In C++ the two versions would look very similar: Your class as written, and the struct as follows:
確定! 回上一頁