教学材料《C语言》_强大的通讯录源代码.docxVIP

  • 3
  • 0
  • 约6.49千字
  • 约 6页
  • 2026-06-18 发布于广东
  • 举报

教学材料《C语言》_强大的通讯录源代码.docx

#includestdio.h/*I/O函数*/

#includestdlib.h /*标准库函数*/

#includestring.h /*字符串函数*/

#includectype.h /*字符操作函数*/

#includeconio.h

#defineMAX50 /*定义常数表示记录数*/

structADDRESS /*定义数据结构*/

{

charname[15]; /*姓名*/

charunits[20];/*单位*/

charphone[15];/*电话*/

};

intInputRecord(structADDRESSr[]);/*输入记录*/

voidListRecord(structADDRESSr[],intn);/*显示记录*/

intDeleteRecord(structADDRESSr[],intn);/*删除记录*/

intInsertRecord(structADDRESSr[],intn);/*插入记录*/

voidSaveRecord(structADDRESSr[],intn);/*记录保存为文件*/

intLoadRecord(structADDRESSr[]);/*从文件中读记录*/

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档