幫忙找個c語言程式,重謝,幫忙找個C語言程式,重謝!

時間 2022-02-06 22:25:15

1樓:夏至

//請編寫程式,定義一個顧客的結構體型別,其成員為:編號、姓名、商品數量,商品總額; //輸入十名顧客的資訊到結構體陣列中,最後統計這十名中購買商品總額最大的顧客,將他的資訊列印輸出。 //並按照下列各式把資訊存入到customer.

txt中: //0001 kate 5 822.8 //0002 jame 7 2761.

9 //2011.1.11 11:

37 #include#include#define cst_num 10//巨集定義客戶數目 struct customer cst[cst_num];//定義結構體customer,並宣告結構體陣列cst[cst_num]. void printline(void); void sort_cst(struct customer,int); void print_cst(struct customer,int); void main(void) } } } void print_cst(struct customer cst,int cst_num)//自定義函式:客戶資訊顯示 printline(); } void printline(void)//自定義函式:

畫線 printf("\n"); }

求c語言高手幫忙。。重謝

2樓:匿名使用者

#include

#include

#include

#include

#define null 0

#define len sizeof(struct student)

struct student

;int n;

struct student *creat()

p2->next=null;

return(head);

}void print(struct student *head)

}else printf("沒有資料 !\n");

}struct student *del(int num,struct student *head)

while(p1->num!=num&&p1->next!=null)

if(p1->num==num)

}while(p1->next!=null);

if(a==0)

printf("學號未找到 !\n");

end:

return(head);

}struct student *add(int num,char name,int score,struct student *head)

while(p0->num>p1->num&&p1->next!=null)

if(p0->num<=p1->num)

else

printf("增加記錄學號為:%d\n",num);

n=n+1;

return(head);

}void num(struct student *head)

p=p->next;

}if(a==0&num!=0)

printf("學號沒找到!\n");

a=0;

}while(num!=0);

system("cls");

}void name(struct student *head)

p=p->next;

}if(a==0&&name[0]!='0')

printf("名字未找到 !\n");

a=0;

}while(name[0]!='0');

system("cls");

}void search(struct student *head)

}while(a!=3);

}struct student *sort(struct student *head)}}

return(head);

}void main()

}while(a!=7);

幫忙找個歌

是這個吧,溜溜的情歌 作詞 蔣開鮑 作曲 徐志強 演唱 鳳凰傳奇 溜溜的情歌成就千古絕唱 世間的人們把你嚮往 打箭爐的月亮圓又亮 雪域康定我的家鄉 跑馬山上有那心愛的姑娘 跑馬山下埡拉河日夜歌唱 美麗的康定人間天堂 五色海子吆為你梳妝 折多河在為你跳著鍋莊 木格措保佑你平安吉祥 溜溜的情歌唱了千萬遍...

c語言程式,幫忙詳細分析一下,C語言程式,幫忙詳細分析一下!

天堂妹兒 選b,等於10。首先是t 3 f t,3 也就是4 f t,3 然後是4 t 2 f t,2 算出來是7 f t,2 然後是7 t 1 f t,1 算出來是9 f t,1 然後是9 t 0 f t,0 算出來是10 f t,0 由於此時n 0,所以返回,結果為10。 草野閒羊 選b,等於1...

c語言程式疑惑(找高手幫忙解釋程式)

大頭 1.為什麼要在定義陣列後就直接輸出printf array a n 這個有什麼意義 答 意義就是提示下面輸出的資料是陣列 a 的資料 迴圈執行printf 5d a i j 將陣列 a 的全部內容輸出。2.程式中有兩處for語句巢狀迴圈,為什麼會有兩次?還有就是第一處的for語句巢狀迴圈得出的...