error C2228: left of '.mazhe' must have class/struct/union type 是C++中常见的一种类型使用错误而产生的编译报错:"'.mazhe'的左边必须是类、结构、联合体之一" , 使用点(.)或箭头(->)引用变量时,操作符左边必须是以上三种数据类型的变量才可以 针对本题:在使用结构体类型数据时,要先...
【题目】error C2228: left of '.move'must have class/struct/union type#includeiostream hclass T Darray { int a[3][3]; public: T Darray(int x[3][3]) { for(int i=0 i3 ;i++) { for(intj=0 j3 ;j++){a[i][j]=x[i][j];}}}void move() { int temp; for(int h=0; ...
error C2228: left of '.move' must have class/struct/union type#include<iostream.h> class TDarray { int a[3][3]; public: TDarray(int x[3][3]) { for(int i=0;i<3;i++) { for(int j=0;j<3;j++) { a[i][j]=x[i][j]; } } } void move() { int temp; for(int h...
Compiler Error C2228 left of '.identifier' must have class/struct/union The operand to the left of the period (.) is not a class, structure, or union. The following sample generates C2228: // C2228.cpp int i; struct S { public: int member; } s, *ps = &s; int main() { i....
1、双击这一行D:\Program Files (x86)\Microsoft Visual Studio\MyProjects\dss\a.cpp(22) : error C2228: left of '.name' must have class/struct/union type 定位出错的地方,这句话的意思是说.name左边需要类、结构体或者联合 2、printf("%s%s\t%f\t",stu[i].name,stu[i].sex,stu[...
这个错误的意思是说:应该使用Class的对象来访问Sum。Student_First->GetScore()返回值是int *,当然不能直接调用Sum,类型不对,语法也不对。可以这样修改:if(((Class*)(Student_First->GetScore())->Sum)<((Class*)(Student_First->Next->GetScore())->Sum))
);错了 改为date d4;用 date d4();的话 编译器把d4理解为一个函数了 其实应该是一个类 ...
編譯器錯誤 C2216 編譯器錯誤 C2217 編譯器錯誤 C2218 編譯器錯誤 C2219 編譯器錯誤 C2220 編譯器錯誤 C2222 編譯器錯誤 C2223 編譯器錯誤 C2224 編譯器錯誤 C2226 編譯器錯誤 C2227 編譯器錯誤 C2228 編譯器錯誤 C2229 編譯器錯誤 C2231 編譯器錯誤 C2232 ...
error C2228: left of '.inputRear' must have class/struct/union type 扫码下载作业帮搜索答疑一搜即得 答案解析 查看更多优质解析 解答一 举报 inputRear 左边那个不是对象或者结构体,是不是敲错了,少了个字母什么的?方便的话把代码都贴出来吧。 解析看不懂?免费查看同类题视频解析查看解答 特别推荐 热点考...
:error c2227:left of '->date'must point to class/struct/union 错误的原因是:指针类型变量才能使用->引用操作符 e:\1.cpp(35):error c2228:left of '.tag'must have class/struct/union type 错误的原因是:非指针结构体变量.引用操作符,也就是.tag左边的变量不是指针变量 struct node结构...