- 17
- 0
- 约2.72万字
- 约 30页
- 2021-10-02 发布于北京
- 举报
.
#includestdio.h
#includestdlib.h
#includestring.h
#ifdef __GNUC__
#includeunistd.h
#includecurses.h
#define clear clear
#define Sleep(x) usleep(x##000)
#endif
#ifdef _MSC_VER
#includewindows.h
#includeconio.h
#define clear system(cls)
#endif
#define TRUE 1
#define FAUSE 0
typedef struct per
{
char name[20];
int sex;
char IDcard[19];
char phone[12];
1 / 30
.
int build_num;
int unit_num;
int house_num;
float area;
float area_price;
float charge;
char remarks[200];
struct per *next;
}PERSON;
void zhuce ();
int login ();
PERSON *Getdata (FILE *fp);
void add_person ();
void del (PERSON *L);
void change (PERSON *L);
void sort_All (PERSON *L);
void pay (PERSON *L);
void sort_B_num (PERSON *L);
void menu_1 ();
void menu_2 ();
int main ()
{
int check,a;
2 / 30
.
printf(\t************************** Welcome !***********************);
printf(\n\t\t1. 注册 );
printf(\n\t\t2. 登录 );
printf(\n\t\t0. 退出 );
printf(\n\t-- 请输入 --: );
scanf(%d,a);
clear;
switch(a)
{
case 0:
{
printf(\t\t-- 感谢使用本系统! --);
Sleep(2000);
exit(0);
}
case 1:
{
zhuce();
clear;
check = login();
while (check == FAUSE)
{
printf(\n 用户名或密码错误。 );
Sleep(2000);
3 / 30
.
原创力文档

文档评论(0)