error C2664 C语言的一个问题~~~~~~
来源:百度知道 编辑:UC知道 时间:2024/06/06 15:22:23
#include<stdio.h>
char *delk(char *sp)
{
for(;*sp!='\0';sp++)
if(*sp=='$') printf('\b');
}
main()
{
char a[100];
gets(a);
*delk(a);
printf("%s",a);
}
这是我程序 编译的时候出现错误
error C2664: 'printf' : cannot convert parameter 1 from 'const char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
这是怎么回事啊
char *delk(char *sp)
{
for(;*sp!='\0';sp++)
if(*sp=='$') printf('\b');
}
main()
{
char a[100];
gets(a);
*delk(a);
printf("%s",a);
}
这是我程序 编译的时候出现错误
error C2664: 'printf' : cannot convert parameter 1 from 'const char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
这是怎么回事啊
#include<stdio.h>
char *delk(char *sp)
{
for(;*sp!='\0';sp++)
if(*sp=='$') printf("\b");//这里需要双引号
return sp;//你定义了返回值,就必须返回个东西
}
void main()
{
char a[100];
gets(a);
delk(a);//不加*
printf("%s",a);
}
编译错误:error C2664 在VC++.net里使用DirectX9.0c
为什么会出现error C2664: 'f' : cannot convert parameter 1 from 'int' to 'int [][3]'
error:rumtime error 204 at 0040249C
C语言declaration syntax error
Data error reading drive C
C程序出错:error C2059: syntax error : '{'
c语言问题:error C2059: syntax error : ']'
倾家荡产求助:“C语言 declaration syntax error”
Ruantime error 183 at 0440385C
Data error reading drive C.是什么意思?