学生通讯信息管理程序代码(C语言)
#include "stdlib.h" /*标准库函数*/ #include "string.h" /*字符串处理函数*/ #include "ctype.h" /*字符操作函数*/ #include "stdio.h" /*标准输入输出函数*/ #include "dos.h" FILE *fp; /*指向文件的指针*/ int i; /*i是全局变量,可代替length ,输入的记录条数*/ struct ffriend {int num; /*序号*/ char name[20]; /*姓名*/ char sex; /*性别*/ char telephone[13]; /*电话*/ int year; int month; int day; char postnum[10]; /*邮编*/ char a[40]; /*家庭地址*/ } friends[50]; void Show(int j) /*输出函数*/ { friends[j].num=j; printf("\n\n\t序号-Nnumber: %3d",friends[j].num); printf("\n\t姓名-Name:%-20s",friends[j].name); printf("\n\t性别-Sex:%3c",friends[j].sex); printf("\n\t联系电话-Telephone:%-13s",friends[j].telephone); printf("\n\t出生日期-Birthday:%4d-%2d-%3d",friends[j].year,friends[j].month,friends[j].day); printf("\n\t邮编-Postnum:%-10s",friends[j].postnum); printf("\n\t通信地址-address:%-40s",friends[j].a); } void Write(int j) /*录入函数*/ { …………
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助