首先感謝之前訪問的17人次。我那第一條沒有營養的博文。廢話不多說,正文開始,這是我自己寫的**溥管理系統,還望各位給出指導意見。我會在接下來49天內,
堅持不懈的寫程式。
#include#include#includestruct node;// i will try to write english note, this is a user`s information and phone number
node *head = null;
node *zimu[26];
void creat_zimu()
}//this is something that is overall situation. i will set a to z in zimu[26] for people name and sortint strcmp(char *s1,char *s2)//it`s strcmp string a and b,s1 biger is +1
int zifu(char n)//it`s mean a == 0;b == 1
void paixucore(node *&head,node *temp,int n)
if(head->next == null)
node *p = head->next;
node *q = head;
while(p && strcmp(temp->name,p->name) == 1)
q->next = temp;
temp->next = p;
}
//the first if is mean temp < head
//the second if is mean only head so head->temp
//the last if is mean q < temp < p
void paixu(node *p)
else
printf("完成排序\n");
}
void newdata(node *&head)static node *r = head;printf("請輸入姓名:\n");scanf("%s",p->name);printf("請輸入**號碼:\n");scanf("%s",p->num);printf("請輸入備註資訊:\n");scanf("%s",p->information);//r->next = p;p->next = null;//r = p;paixu(p);}void newdata(node *&head)
static node *r = head;
printf("請輸入姓名:\n");
scanf("%s",p->name);
printf("請輸入**號碼:\n");
scanf("%s",p->num);
printf("請輸入備註資訊:\n");
scanf("%s",p->information);
//r->next = p;
p->next = null;
//r = p;
paixu(p);
} void newdata(node *&head)
static node *r = head;
printf("請輸入姓名:\n");
scanf("%s",p->name);
printf("請輸入**號碼:\n");
scanf("%s",p->num);
printf("請輸入備註資訊:\n");
scanf("%s",p->information);
//r->next = p;
p->next = null;
//r = p;
paixu(p);
} void newdata(node *&head)static node *r = head;printf("請輸入姓名:\n");scanf("%s",p->name);printf("請輸入**號碼:\n");scanf("%s",p->num);printf("請輸入備註資訊:\n");scanf("%s",p->information);//r->next = p;p->next = null;//r = p;paixu(p);}
no 1 函式的過載
求3個數中最大的數,分別考慮整數,雙精度,長整數的情況 1 主函式分3種情況,每種情況都是 1 定義4個引數,3個是輸入變數,1個是輸出變數 2 用標準輸入流輸入3個變數 3 執行函式的過程 4 用標準輸出流輸出1個結果 2 定義3個函式的演算法,最後的結果返回 include using name...
順心隨筆NO 1
2016年7月30日 天氣 有些燥熱,正是三伏天,幾乎無風 一天的忙碌之後,邀一好友於高地操場跑步,汗如雨。耳機塞在耳洞,音符跳躍著,躁動著青春的節奏。這是一首龐龍的 兄弟抱一下 以後不拼啦 只想安穩有個家 變得現實啦 簡單得近乎白話的歌詞,不堆砌詞藻,卻一句句敲擊著我的心。我有些懼怕,是不是幾年 ...
迴圈結構(no 1)
for 初始化語句 判斷條件語句 控制條件語句 system.out.println sum 對 做一些精簡的變化 package cn.tedu.day02 public class for01 system.out.println sum 例題2 使用for迴圈列印100 999內的水仙花數及水...