社区
非技术版
帖子详情
incompatiable types in assignment
wzh2021
2011-12-14 09:08:04
guo_picture2 pic[]
pic[1]=uo_new
pic[2]=uo_save
pic[3]=uo_delete
pic[4]=p_split_1
pic[5]=uo_jz
pic[6]=uo_3
pic[7]=uo_hzcx
pic[8]=uo_print//就是此处报错
pic[9]=p_split_2
incompatiable types in assignment:guo_picture2,uo_print
...全文
180
5
打赏
收藏
incompatiable types in assignment
guo_picture2 pic[] pic[1]=uo_new pic[2]=uo_save pic[3]=uo_delete pic[4]=p_split_1 pic[5]=uo_jz pic[6]=uo_3 pic[7]=uo_hzcx pic[8]=uo_print//就是此处报错 pic[9]=p_split_2 incompatiable types in assignment:guo_picture2,uo_print
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
wzh2021
2011-12-14
打赏
举报
回复
改成pic[1]=this.uo_new或者pic[1]=parent.uo_new
不过这个原因 还是很奇怪
难道pb不能自己判别吗?
wzh2021
2011-12-14
打赏
举报
回复
[Quote=引用 3 楼 yyoinge 的回复:]
将uo_print 改名成 uo_print1 试试
应该是你的pbt中存在名称为uo_print的自定义对象
[/Quote]
自己已经解决了 ,回来结贴
不过 你说的是对的
yyoinge
yyoinge
2011-12-14
打赏
举报
回复
将uo_print 改名成 uo_print1 试试
应该是你的pbt中存在名称为uo_print的自定义对象
wzh2021
2011-12-14
打赏
举报
回复
[Quote=引用 1 楼 xuam 的回复:]
uo_print能不能正常打开?是不是这个对象损坏了?
[/Quote]
能正常打开的
这些都是从uo_new复制然后改动一下名字而来的
2-7都正常
9以后的也正常
就8报错
xuam
2011-12-14
打赏
举报
回复
uo_print能不能正常打开?是不是这个对象损坏了?
error: in
com
pat
ible
types
in
assign
ment
of 'const char [9]' to 'char [64]'
记录下一些不小心犯的错误。 #defineMAX_SIZE 64 char a[MAX_SIZE]; a ="12345678"; error: in
com
pat
ible
types
in
assign
ment
of 'const char [9]' to 'char [64]' 可以用 strcpy解决问题 char * ...
C++ error: in
com
pat
ible
types
in
assign
ment
of ‘char*‘ to ‘char [20]‘
产生的原因:赋值不兼容类型 class A { char ch[20]; public: A(char* _ch):ch(_ch) {} } 不可以直接拿char* 给char[]赋值 要添加 < cstring > 头文件 改成 1 这样 A(char* _ch) { strcpy(ch,_ch); } 也可以直接改用string类 class A { string ch; public: A
c++(6):error: in
com
pat
ible
types
in
assign
ment
of ‘int*’ to ‘int [2]’
原因: 将函数返回值的类型“int*”强制转化为“int[2]”类型失败解决办法: 用一个“int*”的中间变量接收函数返回值,再转化为“int[2]”类型参数声明部分: 计算坐标索引的函数(返回值为int *类型) 主程序: 修改后c++代码(这里只修改了主程序部分):......
c语言int doubt,c语言错误error: in
com
pat
ible
types
in
assign
ment
#include #include #include #define MAXLEN 100typedef int ElemType;typedef struct{int i,j;// 行下标,列下标ElemType e; //元素值} Doubtle;typedef struct{ Doubtle data[MAXLEN+1]; // 非零元三元组表,data[0]未用int ...
in
com
pat
ible
types
in
assign
ment
of ‘const char [6]‘ to ‘char [20]‘
错误纠正
非技术版
397
社区成员
11,521
社区内容
发帖
与我相关
我的任务
非技术版
PowerBuilder 非技术版
复制链接
扫一扫
分享
社区描述
PowerBuilder 非技术版
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章