64,654
社区成员
发帖
与我相关
我的任务
分享
class A
{
public:
A(int a, int b, int c);
private:
};
typedef struct {
int a;
int b;
int c;
} B;
class A
{
public:
A(int a, int b, int c);
private:
B b;
};
这样可以吗?我的语法不太好[/quote]
typedef struct _B {
int a;
int b;
int c;
} B;
class A
{
public:
A(int a, int b, int c);
private:
B b;
};[/quote]
typedef struct _B {
int a;
int b;
int c;
} B;
和
typedef struct {
int a;
int b;
int c;
} B;
两种定义方式有什么区别呢
typedef struct {
int a;
int b;
int c;
} B;
class A
{
public:
A(int a, int b, int c);
private:
B b;
};
这样可以吗?我的语法不太好[/quote]
typedef struct _B {
int a;
int b;
int c;
} B;
class A
{
public:
A(int a, int b, int c);
private:
B b;
};
typedef struct {
int a;
int b;
int c;
} B;
class A
{
public:
A(int a, int b, int c);
private:
B b;
};
这样可以吗?我的语法不太好