C語言通訊錄(初級版)

2021-07-11 14:17:28 字數 734 閱讀 5857

這裡是乙個簡單的通訊錄,固定為1000容量,不能動態增長,不能寫入檔案。初級版本。

#define _crt_secure_no_warnings  1

#include

#include

int count = 0;

void menu()

typedef

struct teldir

dir;

dir stu[1000] = ;

void input()//新增

void show_all()//顯示全部

}}void deleted()//刪除指定物件的資訊

; printf("請輸入要刪除物件的姓名\n");

scanf("%s", &test.name);

for (i = 0; i < count + 1; i++)

}if (flag == 0)

}void lookfor()//查詢指定物件的資訊

else;}

if (flag == 0)

}void update()//更新資訊

}if (flag == 0)

}void delete_all()//清空

;void sort_byname()//按姓名排序

//}printf("此功能暫時關閉!");

}int main()

}

}

c語言 通訊錄(非初級版)

之前說寫乙個改良版的通訊錄,一直沒有時間來寫,下面我就講一下這個要怎麼寫,只要跟著我的思路,相信你讀完一定會有所收穫 大佬請忽視這句話 涉及知識 1.c語言 多檔案程式設計 2.資料結構 雙向鍊錶 3.設計模式 測試驅動開發 tdd 設計思路 我把這個專案抽象為三層來設計。第一層 應用層,直接面向使...

C語言版通訊錄

通訊錄可以用來儲存1000個人的資訊,每個人的資訊包括 姓名 性別 年齡 住址 可以完成 新增聯絡人資訊 刪除指定聯絡人資訊 查詢指定聯絡人資訊 修改指定聯絡人資訊 顯示所有聯絡人資訊 清空所有聯絡人 以名字排序所有聯絡人 儲存聯絡人到檔案 載入聯絡人 define crt secure no wa...

通訊錄簡易版(c語言)

通訊錄簡易版 include include include pragma warning disable 4996 先建立結構體,表示乙個聯絡人 typedef struct personperson define max person 1024 typedef struct addressboo...