我是靠谱客的博主 冷静星星,这篇文章主要介绍c语言结构体missing ';' before '.',一道结构体的题目, 麻烦帮看一下我的程序,现在分享给大家,希望可以做个参考。

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

这是错误原因, 我不会改啊

--------------------Configuration: sdfdfdf - Win32 Debug--------------------

Compiling...

sdsdsd.cpp

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(23) : error C2065: 'student' : undeclared identifier

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(23) : error C2109: subscript requires array or pointer type

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(23) : error C2228: left of '.num' must have class/struct/union type

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(24) : error C2143: syntax error : missing ')' before '.'

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(24) : error C2540: non-constant expression as array bound

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(24) : error C2059: syntax error : ')'

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2275: 'Student' : illegal use of this type as an expression

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(3) : see declaration of 'Student'

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2228: left of '.num' must have class/struct/union type

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2275: 'Student' : illegal use of this type as an expression

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(3) : see declaration of 'Student'

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2228: left of '.name' must have class/struct/union type

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2275: 'Student' : illegal use of this type as an expression

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(3) : see declaration of 'Student'

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2228: left of '.sex' must have class/struct/union type

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2275: 'Student' : illegal use of this type as an expression

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(3) : see declaration of 'Student'

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2228: left of '.score_M' must have class/struct/union type

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2275: 'Student' : illegal use of this type as an expression

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(3) : see declaration of 'Student'

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2228: left of '.score_E' must have class/struct/union type

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2275: 'Student' : illegal use of this type as an expression

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(3) : see declaration of 'Student'

c:program filesmicrosoft visual studiomyprojectssdfdfdfsdsdsd.cpp(25) : error C2228: left of '.score_P' must have class/struct/union type

Error executing cl.exe. sdsdsd.obj - 18 error(s), 0 warning(s)

最后

以上就是冷静星星最近收集整理的关于c语言结构体missing ';' before '.',一道结构体的题目, 麻烦帮看一下我的程序的全部内容,更多相关c语言结构体missing内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(134)

评论列表共有 0 条评论

立即
投稿
返回
顶部