我是靠谱客的博主 冷静星星,最近开发中收集的这篇文章主要介绍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 ';' before '.',一道结构体的题目, 麻烦帮看一下我的程序所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部