Skip to content

yangtiming/Classified-address-book-management-system

Repository files navigation

Classified-address-book-management-system

Classified-address-book-management-system c language

Classified address book management system

image

Implement an address book for storing information about family members, friends, and business associates. Information that can be stored on the address book includes: name, address, phone number, date of birth. The program can store up to 30 messages.

Write different subfunction implementations:

(1) load data into the addressBook.

(2) Sort the address book by last name.

(3) Look for people by last name.

(4) Output the address, telephone number, date of birth and other information of the designated person.

(5) Prints the names of all people born between the specified two dates into a file.

(6) According to user requirements, the names of all family members, friends and business partners can be classified and output.

实现存储家庭成员、朋友和商业伙伴信息的通讯录。可以在通讯录上存储的信息包括:名字、地址、电话号码、出生日期。该程序最多可以存储30条信息。

a. 定义能够存储街道地址、城市、省、邮政编码的addressType类型的结构。使用personType, dateType, addressType类型 定义 extPersonType类型的结构。为extPersonType类型的结构体继续添加两个成员变量,一个可以把通讯录中人员分为家庭成员、朋友和商业伙伴三类。增加的另一个成员变量可以存储电话号码。

b. 使用前面定义的extPersonType类型的结构体数组addressBook,最多处理30条信息。编写不同子函数实现:

(1) 给通讯录addressBook 装载数据。

(2) 按照姓对通讯录排序。

(3) 按照姓查找人。

(4) 输出指定人的地址、电话号码、出生日期等信息。

(5) 输出在指定两个日期之间出生的所有人的名字到一个文件中。

(6) 按照用户需求,可以分类输出所有家庭成员、朋友和商业伙伴的名字。

Code Introduction

First, in the function of looking up a person's information by name, enter the last name firstly and then the first name

Second, Text Indicates the text file generated by executing the B function of the file(.C).

Third, please pay special attention, because this CPP is written under MAC system, it may be partially incompatible under Window. If this happens, please copy the language down and create a new C file or CPP file to run.

Finally, the test data is kept in the file, in the first line of the //text column, the teacher can use the test.

首先 在用姓名查找人的信息的功能里,是先输入姓,再输入名字

其次 text为执行文件.C的b功能所产生的文本文件。

再次, 老师,特别留意,因为此cpp是在mac系统下编写,有可能在window下有部分不兼容, 若出现这样的情况,请老师将语言复制下来,重新创建一个c文件或者cpp文件在运行。

最后,文件中保留了测试用的数据,在第一行//text的那一栏,老师可以用于测试。

Code Function display

image

About

Classified-address-book-management-system c language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages