xxx.h
struct www
{
//定义
};
a.cpp
#include "xxx.h"
struct www s1[9];
//初始化赋值
b.cpp
#include "xxx.h"
extern struct www s1[9];
//正常调用
qt头文件和结构体多次调用问题
最新推荐文章于 2024-05-07 21:36:49 发布
xxx.h
struct www
{
//定义
};
a.cpp
#include "xxx.h"
struct www s1[9];
//初始化赋值
b.cpp
#include "xxx.h"
extern struct www s1[9];
//正常调用