3,882
社区成员




struct b{
int a;
public
void hello();
};
#include "a.h"
void b::hello()
{
printf("hello\n");
}
void notinafile()
{
// 这里我想用头文件中的变量 a 请问我应该如何使用?
a = 10; //这里这么写应该是错的。
b::a = 10 //这样写也是错的,所以我不知道应该如何使用呢
}
struct b{
int a;
public
void hello();
};