通讯录管理系统的设计与实现c源代码
通讯录管理系统的设计与实现源代码#include <iostream> #include <string> #include <fstream> #include<iomanip>using
通讯录管理系统的设计与实现源代码 #include <iostream> #include <string> #include <fstream> #include<iomanip> using namespace std; struct Student { string num;//学号 string name;//姓名 int age; char tel; char addr; char emal; Student *next; }; long iCount=0; Student *head=NULL; Student *pEnd=NULL; void LoadRecords(char *path)//从文本里面读取记录 { fstream infile(path,ios::in); if(!infile){} else { infile>>iCount; int t=iCount; if(iCount!=0) { for(;iCount>0;iCount--) { Student *p=new Student; infile>>p->num>>p->name>>p->Maths; if(head==NULL) { head=p;pEnd=p;pEnd->next=NULL; } else { pEnd->next=p; pEnd=pEnd->next;

