关于mfc文档与视图关系的 急在线等! 我定义了一个结构体字符数组,在文档类中。 想在视图类中使用。可是显示 编译错误! 错误提示 :D:\MSDev98\MyProjects\koma1993\clist.cpp(83) : error C2065: 'stu' : undeclared identifier D:\MSDev98\MyProjects\koma1993\clist.cpp(83) : error C2109: subscript requires array or pointer type D:\MSDev98\MyProjects\koma1993\clist.cpp(83) : error C2228: left of '.name' must have class/struct/union type D:\MSDev98\MyProjects\koma1993\clist.cpp(84) : error C2109: subscript requires array or pointer type D:\MSDev98\MyProjects\koma1993\clist.cpp(84) : error C2228: left of '.number' must have class/struct/union type D:\MSDev98\MyProjects\koma1993\clist.cpp(85) : error C2109: subscript requires array or pointer type D:\MSDev98\MyProjects\koma1993\clist.cpp(85) : error C2228: left of '.grades' must have class/struct/union type
[解决办法] D:\MSDev98\MyProjects\koma1993\clist.cpp(83) : error C2065: 'stu' : undeclared identifier D:\MSDev98\MyProjects\koma1993\clist.cpp(83) : error C2109: subscript requires array or pointer type D:\MSDev98\MyProjects\koma1993\clist.cpp(83) : error C2228: left of '.name' must have class/struct/union type D:\MSDev98\MyProjects\koma1993\clist.cpp(84) : error C2109: subscript requires array or pointer type D:\MSDev98\MyProjects\koma1993\clist.cpp(84) : error C2228: left of '.number' must have class/struct/union type D:\MSDev98\MyProjects\koma1993\clist.cpp(85) : error C2109: subscript requires array or pointer type D:\MSDev98\MyProjects\koma1993\clist.cpp(85) : error C2228: left of '.grades' must have class/struct/union type