全球结构 [英] Global Structures

查看:94
本文介绍了全球结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用Global Struct然而我收到了这条消息:


错误C2236:意外''struct''''my_struct''



我的代码(MyStruct.h)

struct my_struct {

int box2;

} extern struct my_struct boxedit;

解决方案

你忘记了;在终止结构的}之后

展开 | 选择 | Wrap | 行号


我想我确实这样做了,它给了我同样的错误

展开 | 选择 < span class =codeDivider> | Wrap | 行号


I''ve been trying use use a Global Struct however I get this eeror message:

error C2236: unexpected ''struct'' ''my_struct''


my code (MyStruct.h)

struct my_struct {
int box2;
} extern struct my_struct boxedit;

解决方案

you forgot the ; after the } which terminates the struct

Expand|Select|Wrap|Line Numbers


i think i did that actually and it gave me the same error


Expand|Select|Wrap|Line Numbers


这篇关于全球结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆