问题描述:
--------------------Configuration: Project - Win32 Debug--------------------
Compiling...
Project.c
E:\WEXAM\答案\Project.c(7) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(8) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(9) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(10) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(13) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(13) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(13) : error C2106: '=' : left operand must be l-value
E:\WEXAM\答案\Project.c(20) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(20) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(22) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(23) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(23) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(23) : error C2106: '=' : left operand must be l-value
E:\WEXAM\答案\Project.c(24) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(24) : error C2106: '=' : left operand must be l-value
执行 cl.exe 时出错.
Project.obj - 1 error(s), 0 warning(s)
--------------------Configuration: Project - Win32 Debug--------------------
Compiling...
Project.c
E:\WEXAM\答案\Project.c(7) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(8) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(9) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(10) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(13) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(13) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(13) : error C2106: '=' : left operand must be l-value
E:\WEXAM\答案\Project.c(20) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(20) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(22) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(23) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(23) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(23) : error C2106: '=' : left operand must be l-value
E:\WEXAM\答案\Project.c(24) : error C2109: subscript requires array or pointer type
E:\WEXAM\答案\Project.c(24) : error C2106: '=' : left operand must be l-value
执行 cl.exe 时出错.
Project.obj - 1 error(s), 0 warning(s)
问题解答:
从错误上看,貌似是你把一个1维数组的元素赋给了1个2维数组元素
给段源代码看看吧,不然很难判断。不过看前几个错误像使用操作符[]出的问题。