'int ()' differs in levels of indirection from 'char *(char *)'
来源:百度知道 编辑:UC知道 时间:2024/06/06 01:40:06
hi all, I know this must be a simple problem, but as I'm kind of a new to vc++, I'm having a problem with my codes. My OS is windows XP 2002,and the codes are as follows:
strupr(string)
char *string;
{
while ( *string != '\0' )
{
if (islower(*string)) *string = toupper(*string);
string++;
}
}
I get a error like this:
F:\seed\rdseed.li\4.7\12.23\rdseed\Main\rdseed.c(2868) : error C2040: 'strupr' : 'int ()' differs in levels of indirection from 'char *(char *)'
Any advice would be much appreciated.
strupr(string)
char *string;
{
while ( *string != '\0' )
{
if (islower(*string)) *string = toupper(*string);
string++;
}
}
I get a error like this:
F:\seed\rdseed.li\4.7\12.23\rdseed\Main\rdseed.c(2868) : error C2040: 'strupr' : 'int ()' differs in levels of indirection from 'char *(char *)'
Any advice would be much appreciated.
这里有些JNI的文章,楼主看看:
http://www.graphics.net.cn/article/java/java_jni_vc6.asp
http://www.graphics.net.cn/article/java/java_jni_string.asp
http://www.graphics.net.cn/article/java/java_jni_skill.asp
http://www.graphics.net.cn/article/java/java_jni_skill_2.asp
http://www.graphics.net.cn/article/java/java_jni.asp
char * strupr(string) //
initializing' : cannot convert from 'int *' to 'unsigned int *'
cannot convert from 'const int' to 'int []'是什么意思啊
这个语句是什么意思int(raw_input('Enter an integer : '))
sql中N'@Counts int out '的含义
International 的缩写是什么? 好像是Int'l?
为什么会出现error C2664: 'f' : cannot convert parameter 1 from 'int' to 'int [][3]'
'int ()' differs in levels of indirection from 'char *(char *)'
int *p(int int)与int (*p)(int int)区别?
将 varchar 值 'admin ' 转换为数据类型为 int 的列时发生语法错误。
高分悬赏c语言编程找错:'printf' undefined :assuming extern returning int