VC++ 6.0 C语言程序中error C2664
#include<stdio.h>intmain(){charcChar1,cChar2,cChar3,cChar4;cChar1='H';cChar2='e';cCha...
#include<stdio.h>
int main()
{
char cChar1,cChar2,cChar3,cChar4;
cChar1='H';
cChar2='e';
cChar3='l';
cChar4='o';
putchar(cChar1);
putchar(cChar2);
putchar(cChar3);
putchar(cChar3);
putchar(cChar4);
putchar("\n");
return 0;
}
使用VC++ 6.0时程序报错如下:error C2664: '_flsbuf' : cannot convert parameter 1 from 'char [2]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast 展开
int main()
{
char cChar1,cChar2,cChar3,cChar4;
cChar1='H';
cChar2='e';
cChar3='l';
cChar4='o';
putchar(cChar1);
putchar(cChar2);
putchar(cChar3);
putchar(cChar3);
putchar(cChar4);
putchar("\n");
return 0;
}
使用VC++ 6.0时程序报错如下:error C2664: '_flsbuf' : cannot convert parameter 1 from 'char [2]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询