当前位置: 技术问答>linux和unix
请指点迷津
来源: 互联网 发布时间:2015-06-30
本文导语: /*zdqq*/ main() { //定义光标cursor1: declare cursor1; open cursor1; for(;;) { fetch cursor1; //定义光标cursor2:判断条件:cursor1 declare cursor2; open cursor2; ...
/*zdqq*/
main()
{
//定义光标cursor1:
declare cursor1;
open cursor1;
for(;;)
{
fetch cursor1;
//定义光标cursor2:判断条件:cursor1
declare cursor2;
open cursor2;
for(;;)
{
fetch cursor2;
//调用fnqq函数
iFlag = fnqq(实参1,实参2);
}
close cursor2;
}
close cursor1;
}
//fnqq函数定义
int fnqq(char 参数1,int 参数2)
{
}
编译错误提示是:
1506-343 (S) Redeclaration of fnqq differs from previous claration on line 1045 of "zdqq.c".
1506-379 (I) Prototype for function fnqq must contain only promoted types if prototype and nonprototype declarations are mixed.
1506-380 (I) Parameter 1 has type "char" which promotes t
o "int".
不知道怎么回事???
main()
{
//定义光标cursor1:
declare cursor1;
open cursor1;
for(;;)
{
fetch cursor1;
//定义光标cursor2:判断条件:cursor1
declare cursor2;
open cursor2;
for(;;)
{
fetch cursor2;
//调用fnqq函数
iFlag = fnqq(实参1,实参2);
}
close cursor2;
}
close cursor1;
}
//fnqq函数定义
int fnqq(char 参数1,int 参数2)
{
}
编译错误提示是:
1506-343 (S) Redeclaration of fnqq differs from previous claration on line 1045 of "zdqq.c".
1506-379 (I) Prototype for function fnqq must contain only promoted types if prototype and nonprototype declarations are mixed.
1506-380 (I) Parameter 1 has type "char" which promotes t
o "int".
不知道怎么回事???
|
1、declare、open是oracle pro*c?
2、在main()之前应该声明一下fnqq函数的signature,或者直接把fnqq函数体移到main前面
3、第三个错误信息,我不知道具体指哪句话“fetch cursor1 into ch_cs1;”还是“fetch cursor2 into i_cs2;”。类型不匹配吗
2、在main()之前应该声明一下fnqq函数的signature,或者直接把fnqq函数体移到main前面
3、第三个错误信息,我不知道具体指哪句话“fetch cursor1 into ch_cs1;”还是“fetch cursor2 into i_cs2;”。类型不匹配吗
|
Up
gz
gz
|
还没有搞定?
|
fetch cursor1 into ch_cs1; //什么 意思???