Introduction - If you have any usage issues, please Google them yourself
电力公司电费收取中涉及的信息主要有:用户号、姓名、类别(居民照明、工业用电)、
起始度、止度、电价、金额、收费单位、日期。要求编程程序实现如下功能:
1)信息录入:当输入用户号为-999时,结束录入,同时将录入的信息以增加的方式
写入到指定的文件中; 2)查询:输入用户号,显示所找到用户的所有信息;3)修改:
输入用户号或姓名,修改指定收费中的相关信息,将修改结果写回文件保存;4)删除:
输入用户号,能够删除指定人员的信息,将删除后结果写回文件;5)排序:要求按姓名
进行降序排列后输出;6)显示:以表的形式输出所有通讯簿中信息;7)统计:按日期统
计电费金额并显示统计结果
要求以每个功能以函数实现,以菜单的形式显示各功能,从菜单中选择相应的编号后执
行相应的功能。