- 论坛徽章:
- 0
|
求助!!!!!!!!懂4gl的朋友进
#include <stdlib.h>;
#include <stdio.h>;
#include <time.h>;
randoms()
{
int j;
char k;
time_t t;
srand((unsigned) time(&t));
j=rand()%26;
j=j+97;
k=toascii(j);
return k;
}
上面是c程序
main
define i char(1)
let i=""
let i=randoms()
call randoms() returning i
display i
end main
这是4gl程序,其中调用的两种格式哪一种都不行
Program stopped at "random.4gl", line number 6.
FORMS statement error number -1320.
A function has not returned the correct number of values
expected by the calling function.
都报这样的错,高手来指教一下啊 |
|