c中的结构 [英] structure in c

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

问题描述

大家早上好.我的编码有严重问题.没有错误链接器2001:未解析的外部符号".该错误来自结构参考.但是我已经在头文件中声明了它.

Good Morning to everyone. I have a serious problem in my coding. There is a error "linker 2001: unresolved external symbol". This error comes on the reference for the structure. But i have declared it in the header file. How to correct it?

推荐答案

声明结构是不够的.您必须定义一个类型为struct的变量.
请修改您的帖子,包括相关代码,以获得更好的帮助.
:)
Declaring the structure is NOT enough. You must define a variable whose type is your struct.
Please modify your post including the relevant code for better help.
:)


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

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