资源简介
大一的期末考试内容,也是程序员的第一个项目,里面涵盖了所有c的基础内容
代码片段和文件信息
#include
#include
#include “addressbook.h“
bool InputMemData(ElemType *memData)
{
if(memData == NULL)
return false;
char chTemp[10];
//InitElem(memData);
printf(“请输入ID号(int): “ );
scanf(“%d“ &(memData->memberID));
getchar();
printf(“请输入姓名(不超过%d位): “ LEN_NAME );
gets(memData->name );
printf(“请输入性别: M F: “);
gets(chTemp);
if(strcmp(chTemp “M“) == 0)
memData->sex = MALE;
else
memData->sex = FEMALE ;
printf(“请输入电话(不超过%d位): “ LEN_TELENO );
gets(memData->teleNo );
printf(“请输入地址(不超过%d位): “ LEN_ADDRESS );
gets(memData->addr );
printf(“请输入email(不超过%d位): “ LEN_EMAIL);
gets(memData->email );
return true;
}
bool InputCondition(ElemType *memData)
{
if(memData == NULL)
r
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5589 2012-04-25 21:42 zzl-complete-AddressBookManage\AddressBook.cpp
文件 272 2012-05-02 14:53 zzl-complete-AddressBookManage\addressbook.dat
文件 1249 2010-04-20 10:23 zzl-complete-AddressBookManage\AddressBook.h
文件 2056 2010-04-20 10:23 zzl-complete-AddressBookManage\AddressBookManage.cpp
文件 4808 2010-04-20 11:02 zzl-complete-AddressBookManage\AddressBookManage.dsp
文件 559 2010-01-05 10:45 zzl-complete-AddressBookManage\AddressBookManage.dsw
文件 156672 2012-05-02 21:19 zzl-complete-AddressBookManage\AddressBookManage.ncb
文件 48640 2012-05-02 21:19 zzl-complete-AddressBookManage\AddressBookManage.opt
文件 2028 2012-05-02 14:53 zzl-complete-AddressBookManage\AddressBookManage.plg
文件 1159 2010-04-18 11:49 zzl-complete-AddressBookManage\elemtype.cpp
文件 1334 2010-04-18 12:13 zzl-complete-AddressBookManage\elemtype.h
文件 3294 2012-04-26 10:51 zzl-complete-AddressBookManage\ListManage.cpp
文件 1809 2012-05-02 14:53 zzl-complete-AddressBookManage\ListManage.h
文件 376 2010-03-26 09:39 zzl-complete-AddressBookManage\知识点.txt
目录 0 2012-05-10 13:26 zzl-complete-AddressBookManage
----------- --------- ---------- ----- ----
229845 15
评论
共有 条评论