一道C程题#include void mian(){void input(int *);void compare(int *);void put(int *);int n[10];input(n);compare(n);put(n);}void input(int n[10]){int i;printf("请输入十个数:\n");for(i=0;i
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/31 08:33:06
![一道C程题#include void mian(){void input(int *);void compare(int *);void put(int *);int n[10];input(n);compare(n);put(n);}void input(int n[10]){int i;printf(](/uploads/image/z/12186851-59-1.jpg?t=%E4%B8%80%E9%81%93C%E7%A8%8B%E9%A2%98%23include+void+mian%28%29%7Bvoid+input%28int+%2A%29%3Bvoid+compare%28int+%2A%29%3Bvoid+put%28int+%2A%29%3Bint+n%5B10%5D%3Binput%28n%29%3Bcompare%28n%29%3Bput%28n%29%3B%7Dvoid+input%28int+n%5B10%5D%29%7Bint+i%3Bprintf%28%22%E8%AF%B7%E8%BE%93%E5%85%A5%E5%8D%81%E4%B8%AA%E6%95%B0%3A%5Cn%22%29%3Bfor%28i%3D0%3Bi)
一道C程题#include void mian(){void input(int *);void compare(int *);void put(int *);int n[10];input(n);compare(n);put(n);}void input(int n[10]){int i;printf("请输入十个数:\n");for(i=0;i
一道C程题
#include
void mian()
{
void input(int *);
void compare(int *);
void put(int *);
int n[10];
input(n);
compare(n);
put(n);
}
void input(int n[10])
{
int i;
printf("请输入十个数:\n");
for(i=0;i
一道C程题#include void mian(){void input(int *);void compare(int *);void put(int *);int n[10];input(n);compare(n);put(n);}void input(int n[10]){int i;printf("请输入十个数:\n");for(i=0;i
悬赏是零蛋啊.
你函数头main()写错了
再就是
函数声明要放在调用函数外!因为函数不是包含关系!而是调用!
#include
void input(int *);
void compare(int *);
void put(int *);
void main()
{
int n[10];
input(n);
compare(n);
put(n);
}
void input(int n[10])
{
int i;
printf("请输入十个数:\n");
for(i=0;i