包含增刪查改備份賬戶管理的管理系統(tǒng)
各項(xiàng)功能
c語(yǔ)言程序源碼:
- //---------------------------------------------主函數(shù)----------------------------------------------------
- # include <stdio.h>
- # include <stdlib.h>
- # include <string.h>
- # include <conio.h>
- # include <time.h>
- # include <windows.h>
- # include "jiegou.h"
- # include "jiegou2.h"
- # include "bianliang.h"
- int main()
- {
- char choice,s[20];
- int n,bei=0,yhs=0; //n表示數(shù)據(jù)塊個(gè)數(shù)
- zhanghu(&yhs);
- n=duqu(&bei);
- while(1)
- {
- system("cls");
- system("color 37");
- printf("\n\n"); //界面
- printf("\t\t***********************************************\n");
- printf("\t\t 歡迎使用電子通訊錄 KAI2.0版本 \n");
- printf("\t\t***********************************************\n\n");
- printf("\t\t 1:添加聯(lián)系人 \n");
- printf("\t\t 2:刪除聯(lián)系人 \n");
- printf("\t\t 3:修改聯(lián)系人 \n");
- printf("\t\t 4:查顯聯(lián)系人 \n");
- printf("\t\t 5.修改密碼 \n");
- printf("\t\t 6.刪除賬戶 \n");
- printf("\t\t 7.打印數(shù)據(jù) \n");
- printf("\t\t 8.備份數(shù)據(jù) \n");
- printf("\t\t 0:退出 \n");
- printf("\n\t\t");
- time_t lt=time(NULL);
- printf(ctime(<));
- printf("\t\t_______________________________________________\n");
- printf("\t\t請(qǐng)選擇您所要的服務(wù): \n\t\t");
- choice=getch();
- printf("\n");
- switch(choice)
- {
- case '1':n=add(n);break; //返回操作后的數(shù)據(jù)個(gè)數(shù) 暫無(wú)自動(dòng)保存
- case '2':n=shanchu(n);break; //返回刪除后的數(shù)據(jù)個(gè)數(shù) 暫無(wú)自動(dòng)保存
- case '3':update(n);break; //暫無(wú)自動(dòng)保存
- case '4':search(n);break;
- case '5':xiugai(n,yhs);break;
- case '6':shanhu(&yhs);break;
- case '7':dayin(n);break;
- case '8':beifen(n,bei);break;
- case '0':quit(n);break;
- default:
- {
- system("cls");
- printf("\n\n\n");
- printf("選擇錯(cuò)誤,請(qǐng)重新輸入并選擇!\n");
- printf("\n\n\n");
- system("PAUSE");
- }
- }//switch
- }//while
- return 0;
- }
復(fù)制代碼
所有資料51hei提供下載:
通訊錄.rar
(320.81 KB, 下載次數(shù): 6)
2018-6-6 10:13 上傳
點(diǎn)擊文件名下載附件
|