99问答网
所有问题
请问c语言中老是出现error C2115: '=' : incompatible types是怎么回事啊
如题所述
举报该问题
推荐答案 推荐于2017-09-12
这是类型不相容所导致的。就是说此类型不支持所请求的操作。
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://99.wendadaohang.com/zd/zjBjXetXz.html
其他回答
第1个回答 2017-09-11
类型不匹配
~
~
~
~
第2个回答 2017-09-10
https://zhidao.baidu.com/question/305979065050588844.html
第3个回答 2012-03-18
代码发上来看看
第4个回答 2012-03-16
看一下哪块赋值的时候等号两边的类型不一致。
相似回答
error
C2115:
'function' :
incompatible
types
什么意思
答:
函数没有声明
error
C2115:
'function' :
incompatible
types
错误在ave=average(scor...
答:
float average(float [],int); //函数声明少了[]
...
C2115:
'function' :
incompatible
types
,求大神。。。
答:
include<string.h> typedef struct student { char ID[20];char NAME[20];}stu;void set(stu stu1[][8]);void delete1(stu stu[][8]);void show(stu student[][8]);void Information(stu stud[][8]);void find(stu stu[][8], int *q, int *p);void clean();void main(){ i...
编译错误
:incompatible
types
答:
我在我的机子上也试了一下,编译过了没有问题,它的提示说你初始化的时候用了错误的类型,也就应该是把b赋给s的number时错误了,你试一下改成 safe c = {{&a, "abc"}, "aaa"};看看可不可以
...
总是
有
error
C2446。。error
C2115
。。这类
的
数,不知是什么意思...
答:
sematics of const.int i;char *p;int *j;const int *cj;void main(){ p = i; //
ERROR
#1: conversion has no meaning j = cj; // ERROR
#
2: pointer to const obj } 2.
C2115
Compiler
Error
C2115 'identifier'
:
incompatible
types
An expression contained incompatible types....
C语言
编程问题,
incompatible
type for argument 1 of '函数名',
请问
这...
答:
这种错误的原因,一般是因为被调用函数的形参对象应该是数组名,而不应该是数组。解决方法:一对花括号一对的找,肯定少了一个。注意:不要直接点击”编译并且运行”,而是应该点击”编译”按钮,这样可以保证警告不会被忽略,一些警告是非常有用的。有多个错误,要先处理最前面的错误,因为后面的错误可能...
c语言
[
Error
]
incompatible
types
in assignment of `const char[9...
答:
这里得用strcpy,直接写就错了。在定义时可以直接赋值
初学
C语言
问题
error:
conflicting
types
for 'main'|
答:
去掉 char main(void);
C语言incompatible
types
when assigning to type 'Student' from type...
答:
结构体初始化应该用花括号,你用小括号是错的。应该改成这样,student[0] = { "wang", 1, 18, 65 };然后name,你在主函数中赋值用的字符串,那么声明应该为字符数组类型。char name[10];输出格式也就要相应改成name:%s,printf("name:%s num:%f age:%f mark%f \n", student[counter...
大家正在搜
相关问题
error C2115: '=' : incompatibl...
急急急,新手C语言编写考场座位系统,出现error C211...
error C2115: '=' : incompatibl...
编译错误:incompatible types
c++ error:incompatible types怎么...
C语言 有一个错误 求改正
error C2115: 'function' : inco...
我不知道c语言程序哪里出错了