在 C++ 中的类中定义一个结构
谁能给我举个例子,说明如何在 C++ 中的 类 中定义新类型的 struct.
Can someone give me an example about how to define a new type of struct in a class in C++.
谢谢.
推荐答案
是这样的:
class Class {
// visibility will default to private unless you specify it
struct Struct {
//specify members here;
};
};
相关文章