作者Isuzel (Isuzel)
看板NSYSU-CSE97
標題Re: [作業] [計概] Work9
時間Tue Dec 14 21:52:31 2004
函數引數要加資料型態
並且在input、swap裡面的length跟在main裡面的length是三個陣列而非同一個喔!
=====================================================================
#include<stdio.h>
#include<stdlib.h>
//Mean to trying the block of input
void input(
length[0],length[1],length[2])
{
......
.....
}
//swap the number to the longest>medium>shortest.
void swap(
length[0],length[1],length[2])
{
.......
.......
}
.....
........
void main()
{
FILE *finput,*foutput;
int
length[],division;
input(
length[0],length[1],length[2])//look into the first function "input"
swap(
length[0],length[1],length[2])// look into the second function "swap"
........
.......
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.186.150