clt算法
A. 求扫雷达人告诉我 minesweeper arbiter的计数里每行都是统计的什么!!!
大概就是这个样子:
RTime:
Real
Time(扫雷真实用时)
Est
RTime:
Estimated
Time(预计完成时间)
3BV:Bechtel's
Board
Benchmark
Value
(完成当前局所需最少左键点击数)
3BV/s:
3BV
/
RTime
Zini:
(代表标雷扫法所需的最少点击数,有多种算法)
(@后的数为除以
RTime
后的值,下同)
H.Zini:
Human
Zini
(Zini
计算方法的其中一种)
Ops:
Opening(无数字区域的数量)
lsls;
Island(构成BV点的成片数字区域的数量)
Left:
(左键点击数)
Right:
(右键点击数)
Double:
(双击次数)
Cl:
Clicks(总点击数)
IOE:Index
Of
Efficiency;
3BV
/
Cl
ThrP:
IOE
/
Corr
Corr:
Correctness(有效点击比例)
ZNE:
Zini
/
Cl(类似于IOE)
HZNE:
H.Zini
/
Cl
ZNT:
Zini
/总有效点击数
HZNT:
H.Zini
/
总有效点击数
Path:
(以像素为单位的鼠标移动路径长度)
Flags:
(右键标记的雷数)
RQP:Rapport
Qualité
Prix;
(RTime+1)
/
3BV/s
IOS:
Index
of
Speed;
log
(3BV)
/
log
(Time
-
1)
Rank:(当前局在已完成游戏中的
RTime
和
3BV/s
排名)
(of
后的数为已完成的游戏数,最后一个数为相应的比例)
ios
rank:
(当前局在已完成游戏中的IOS排名)
rqp
rank:(当前局在已完成游戏中的RQP排名)
B. 任务栏无法打开
很明显要不是中了病毒,要么是某个软件屏弊了.
C. 作为面试官,如何判断一个面试者的深度学习水平
人工智能、大数据、云计算和物联网是目前非常热门而且前沿的领域,未来发展前景值得重视。不论是薪资待遇,还是人才缺口,都对程序员有很大的吸引力。那么在面试深度学习高级工程师的时候,HR都看重哪些能力呢?
(1) 熟练的编程开发能力
对于深度学习高级工程师而言,掌握python编程语言是最基础的能力。除此之外,还要至少掌握一门底层开发语言。毕竟公司招人不会只为了让你训练模型写论文,有时候还要把模型部署到手机上,优化底层算法等等,所以也要掌握C/C++等编程语言。
(2) 优秀的模型开发能力
深度学习技术具有很高的灵活性,特别是随着许多流行的深度学习框架的出现,如Tensorflow,Keras,Caffe,MXnet,PyTorch,Theano等。这些工具大多以模块化方式开发,并具有活跃的社区和专业的支持。
虽然深度学习的开源代码很多,但是以学术研究模型为主,很少有企业会把产品线上优化过的核心模型放出来。所以优秀的模型开发能力,是必须要具备的。
为了让同学们能用更短的时间掌握深度学习技能,中公教育联合中科院自动化研究所专家,推出了人工智能《深度学习》直播课程。课程时长5周,包含6大实战项目,以实操贯穿理论,可以帮你快速建立、梳理相关知识体系,让你的成长更有方向、更高效。
课程涵盖行业内75%技术要点,如语音识别(微信语音转文字、Siri、天猫精灵等)、图像识别(火车站人脸识别、人脸打卡、办卡人脸识别、健康码人脸识别、违章拍摄、网络识图、淘宝识图、有声绘本)、机器对话(微软小冰、同声翻译等)都有所掌握,满足各类就业需求。
D. 美标管件怎么分类 具体点的
美国管件标准ASME/ANSI B16.9 工厂制造的无缝钢管制对焊管件 ASME/ANSI B16.11 承插焊和螺纹锻造管件 ASME/ANSI B16.28 钢制对焊小半径弯头和回头弯 ASME B16.5 管法兰和法兰配件 MSS SP-43 锻制不锈钢对焊管件 MSS SP-83 承插焊和螺纹活接头MSS SP-97 承插焊、螺纹和对焊端的整体加强式管座 ASME B16.3-1998可锻铸铁螺纹管
E. C#unchecked是怎么用的
这是告诉系统,不检查变量溢出。这里应该是针对你这++count的。
假如说,你这count是byte类型。
byte的有效范围是从0到255。
你这样一直累加。有可能就会到256,超出他的正常值。
使用unchecked时,255再加1就会变成0。
F. 华为DvcAN20
华为畅享 20 Pro
作为华为畅享20系列首款5G手机产品,该机拥有双模6频段5G性能,配6.5英寸90Hz刷新率屏幕,拍照有4800万AI三摄。华为畅享 20 Pro在外观方面,采用了2019年主流的水滴全面屏设计。众所周知,在2020年,智能手机开始向挖孔全面屏设计普及。虽然水滴屏同样可以带来很高的屏占比,但是和挖孔全面屏相比,美观方面还是稍逊一筹。
(6)clt算法扩展阅读:
华为畅享 20 Pro在相机方面,采用了后置4800万像素,支持夜景拍摄和800万像素的超广角、景深摄像头以及200万的微距摄像头。虽然从相机方面来看,华为畅享 20 Pro的相机参数不算出色,但是从笔者对华为畅享 20 Pro的拍照体验来看,华为畅享 20 Pro在光线充足的情况下,白平衡表现依旧出色。当然,在光线不足的情况下,由于华为影像系统的加持,进光量有了很大的提升,对于噪点和白平衡的控制同样是可圈可点的。
G. C语言编写酒店管理系统
int CheckRoom(struct room *pr)
{char phonenu[4][12]={"110","119","120","122"};/*非法私人电话号码*/
char type[3][2]={"2","t","T"};
int flag=1,i;
static int pass=1;
if(NULL==pr) {printf("Error:Null point! Can't check the datas:\n");return 0;}
printf("Start to part Maintain:about room\n");
while( strlen(pr->roomnu)>5 )/*检查数据长度,防止保存二进制数据错误*/
{pr->roomnu[5]=0;
printf("ERROR:the roomnu: %s is longer than 5 bytes.\n",pr->roomnu);
printf("Please select another shorter roomnu:\n");
scanf("%s",pr->roomnu);
}
while( strlen(pr->cleaner)>19 )/*检查数据长度,防止保存二进制数据错误*/
{pr->cleaner[19]=0;
printf("ERROR:the cleaner:%s is longer than 19 bytes.\n",pr->cleaner);
printf("Please select another shorter name:\n");
scanf("%s",pr->cleaner);
}
while(flag||strlen(pr->phonenu)>11)/*检查数据内容(由flag控制)和长度,防止保存二进制数据错误*/
{
while( strlen(pr->phonenu)>11 )/*检查长度*/
{pr->phonenu[11]=0;
printf("ERROR:the phonenu:%s is longer than 11 bytes.\n",pr->phonenu);
printf("Please select another shorter phonenu:\n");
scanf("%s",pr->phonenu);
}
while(flag)/*检查内容*//*这个算法也有问题,如果内容非法,但长度通过怎么办呢?*/
{for(i=0;flag&&i<4;i++)
if( 0==strcmp(pr->phonenu,phonenu[i]) )/*内容非法*/
{printf("ERROR:illegal phonenu:%s!\n",pr->phonenu);
flag=0;/*检测到内容非法*/
}
if(flag) flag=0;/*内容检查通过*/
else {flag=1;
printf("Please input a legal phonenu:\n");
scanf("%s",pr->phonenu);/*内容检查未通过,重新收入*/
}
}
}
flag=1;
while(flag||strlen(pr->type)>1)/*检查数据内容(由flag控制)和长度,此例和上例不同*/
{
while( strlen(pr->type)>1 )/*检查长度*/
{pr->type[1]=0;
printf("ERROR:the type:%s is longer than 1 byte.\n",pr->type);
printf("Please select another shorter type:\n");
scanf("%s",pr->type);
}
while(flag)/*检查内容*/
{if(strcmp(pr->type,type[0])&&strcmp(pr->type,type[1])&&strcmp(pr->type,type[2]) )/*内容非法*/
{printf("ERROR:illegal type:%s!\n",pr->type);
flag=0;/*检测到内容非法*/
}
if(flag) flag=0;/*内容检查通过*/
else {flag=1;
printf("Please input a legal type:\n");
scanf("%s",pr->type);/*内容检查未通过,重新收入*/
}
}
}
while( pr->maximum<pr->currentclient )/*检查数据间的联系*/
{printf("ERROR:the room's capacity does not fit for the number of current clients.\n");
printf("Please alter the maximum:\n");
scanf("%d",&(pr->maximum));
}/*检查房间最大容量和当前已住顾客人数是否相容,如果前者小于后者则写入错误报告文件 */
printf("Congratulations: ROOM Check pass %d!\n",pass++);
return 1;
}
int CheckClient(struct client *pc)
{ int flag=1,i;
char sex[4][2]={"m","M","f","F"};
static int pass=1;
if(NULL==pc) {printf("Error:Null point! Can't check the datas:\n");return 0;}
printf("Start to part Maintain:about client\n");
while( strlen(pc->roomnu)>5 )/*检查房间长度*/
{pc->roomnu[5]=0;
printf("ERROR:the roomnu: %s is longer than 5 bytes.\n",pc->roomnu);
printf("Please select another shorter roomnu:\n");
scanf("%s",pc->roomnu);
}
while( strlen(pc->identity_card)!=18 )/*检查身份证号长度*/
{pc->identity_card[18]=0;
printf("ERROR:the identity_card:%s is not 18 bytes.\n",pc->identity_card);
printf("Please check the length and input it again:\n");
scanf("%s",pc->identity_card);
}
while(strlen(pc->name)>19)/*检查姓名长度*/
{pc->name[19]=0;
printf("ERROR:the name:%s is longer than 19 bytes.\n",pc->name);
printf("Please select another shorter phonenu:\n");
scanf("%s",pc->name);
}
while(flag||strlen(pc->sex)>1)/*检查性别内容(由flag控制)和长度*/
{
while( strlen(pc->sex)>1 )/*检查长度*/
{pc->sex[1]=0;
printf("ERROR:the sex:%s is longer than 1 byte.\n",pc->sex);
printf("Please select another shorter sex:\n");
scanf("%s",pc->sex);
}
while(flag)/*检查内容*/
{if(strcmp(pc->sex,sex[0])&&strcmp(pc->sex,sex[1])&&strcmp(pc->sex,sex[2])&&strcmp(pc->sex,sex[3]) )/*内容非法*/
{printf("ERROR:illegal sex:%s!\n",pc->sex);
flag=0;/*检测到内容非法*/
}
if(flag) flag=0;/*内容检查通过*/
else {flag=1;
printf("Please input a legal sex:\n");
scanf("%s",pc->sex);/*内容检查未通过,重新收入*/
}
}
}
while( strlen(pc->date)!=8 )/*检查日期长度*/
{pc->date[8]=0;
printf("ERROR:the date:%s is not 8 bytes.\n",pc->date);
printf("Please check the length and input it again:\n");
scanf("%s",pc->date);
}
while( strlen(pc->collect)>5 )/*检查收款人长度*/
{pc->collect[5]=0;
printf("ERROR:the collect:%s is not 5 bytes.\n",pc->collect);
printf("Please check the length and input it again:\n");
scanf("%s",pc->collect);
}
while(pc->time<0)/*检查入住天数*/
{printf("ERROR:illegal input of time: %f!\n",pc->time);
printf("Please check and input it again:\n");
scanf("%f",&pc->time);
}
while(pc->cost<0)/*检查应缴费用*/
{printf("ERROR:illegal input of cost: %f!\n",pc->cost);
printf("Please check and input it again:\n");
scanf("%f",&pc->cost);
}
while(pc->fee<0)/*检查实缴费用*/
{printf("ERROR:illegal input of cost: %f!\n",pc->fee);
printf("Please check and input it again:\n");
scanf("%f",&pc->fee);
}
if( pc->fee>pc->cost )/*检查数据间的联系,实缴费用应小于应缴用*/
{printf("It may be a error:fee=%f > cost=%f\n",pc->fee,pc->cost);
printf("Do you like to alter them?(1:YES;0:NO)\n");
scanf("%d",&flag);
while(flag)
{printf("Please input the values:cost and fee\n");
scanf("%f%f",&pc->cost,&pc->fee);
if(pc->fee>pc->cost)
{printf("Error again!!\n");flag=1;}
else flag=0;
}
}
printf("Congratulations: CLIENT Check pass %d!\n",pass++);
return 1;
}
int CheckAll(struct room *head_room)
{struct client *pc;
struct room *pr;
if(NULL==head_room) {printf("head_room=0\n");return 0;}
printf("Start to part Maintain:about room and client\n");
pr=head_room;
while(pr)
{CheckRoom(pr);
pc=pr->head;
while(pc)
{CheckClient(pc);
pc=pc->next;
}
pr=pr->next;
}
return 1;
}
/**该函数为内部数据维护,不提供输入数据服务。实体完整性,参照完整性,用户自定义完整性
出现错误则将错误输出到doc文档。
错误范围暂时定义如下:
1.同一房间的客户房间号不同(同房搜索!)
2.实缴费用大于应缴费用。(同房搜索!)
3.同一个客户在同一天两次住进宾馆(全表搜索!身份证号和入住日期相同)
4.同一身份证号,姓名和性别不同(全表搜索!)
另外,应该完成的任务有:
5.计算客户的应缴费用->对cost操作,需要用到:time,unit_price
6.计算客房的总住户人数(包括当前住户)->对totalclient操作,需要用到:没有
7.重新修订当前住户数->对currentclient进行操作,需要用到:time
8.计算客房的总计收入->对income进行操作,需要用到:fee
9.当前住户的实缴费用清零->对fee进行操作,需要用到:time
完成这些操作的先后顺序为:7->6->5->9->8->2->1->3->4*/
int Consistency(struct room *head_room)
{struct room *pr,*tpr;
struct client *pc,*tpc;
char file[12]="error.doc";
int i=0;/*i用于错误计数*/
static int count=0;
FILE *fp;
if(NULL==head_room) {printf("head_room=0\n");return 0;}
printf("Start to part Maintain:Consistency!\n");
pr=head_room;
while(pr)
{pr->currentclient=0;
/*pr->totalclient=0;*/
pr->income=0;
pc=pr->head;
while(pc)
{if(!pc->time) pr->currentclient++;/*完成........7.....*/
/*pr->totalclient++;*/ /*完成........6.....*/
pc->cost=(pc->time)*(pr->unit_price); /*完成........5.....*/
if(!pc->time) pc->fee=0; /*完成........9.....*/
pr->income=pr->income+pc->fee; /*完成........8.....*/
pc=pc->next;
}
pr=pr->next;
}
if(NULL==( fp=fopen(file,"wt") ) )
{printf("Cannot open file:%s!\n",file);
return 0;
}
pr=head_room;
while(pr)
{pc=pr->head;
while(pc)
{if(pc->fee>pc->cost)
{fprintf(fp,"Error %d:fee=%f > cost=%f\n",++i,pc->fee,pc->cost);
fprintf(fp,"roomnu identity_card name sex date clt time cost fee\n");
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n\n",pc->roomnu,pc->identity_card,pc->name,pc->sex,pc->date,pc->collect,pc->time,pc->cost,pc->fee);
/*完成........2.....*/
}
if( strcmp(pr->roomnu,pc->roomnu) )
{fprintf(fp,"Error %d:the client's roomnu:%s != the room's roomnu:%s",++i,pc->roomnu,pr->roomnu);
fprintf(fp,"roomnu cleaner phonenu type max area price clientNO\n");
fprintf(fp,"%-6s %-16s %-12s %-4s %-3d %-6.1f %-6.1f %-2d\n",pr->roomnu,pr->cleaner,pr->phonenu,pr->type,pr->maximum,pr->area,pr->unit_price,pr->currentclient);
fprintf(fp,"roomnu identity_card name sex date clt time cost fee\n");
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n\n",pc->roomnu,pc->identity_card,pc->name,pc->sex,pc->date,pc->collect,pc->time,pc->cost,pc->fee);
/*完成........1.....*/
}
pc=pc->next;
}
pr=pr->next;
}
/*这个要全表搜索,搜索一次全表过掉一个客户*/
pr=head_room;
while(pr)
{pc=pr->head;
while(pc)
{
if(pc->next)
{tpc=pc->next;
while(tpc)
{if(0==strcmp(pc->identity_card,tpc->identity_card) && 0==strcmp(pc->date,tpc->date) )
{fprintf(fp,"Error %d:the same client:%s lived in our hotel in the same day:%s\n",++i,pc->identity_card,pc->date);
fprintf(fp,"roomnu identity_card name sex date clt time cost fee\n");
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n",pc->roomnu,pc->identity_card,pc->name,pc->sex,pc->date,pc->collect,pc->time,pc->cost,pc->fee);
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n\n",tpc->roomnu,tpc->identity_card,tpc->name,tpc->sex,tpc->date,tpc->collect,tpc->time,tpc->cost,tpc->fee);
}/*完成........3.....*/
if(0==strcmp(pc->identity_card,tpc->identity_card) && (strcmp(pc->name,tpc->name)||strcmp(pc->sex,tpc->sex)) )
{fprintf(fp,"Error %d:the same client:%s have the different name or sex in our hotel.\n",++i,pc->identity_card);
fprintf(fp,"roomnu identity_card name sex date clt time cost fee\n");
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n",pc->roomnu,pc->identity_card,pc->name,pc->sex,pc->date,pc->collect,pc->time,pc->cost,pc->fee);
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n\n",tpc->roomnu,tpc->identity_card,tpc->name,tpc->sex,tpc->date,tpc->collect,tpc->time,tpc->cost,tpc->fee);
}/*完成........4.....*/
tpc=tpc->next;
}/*while(tpc) exit */
/*当前房间比较结束,进入下一个房间*/
tpr=pr->next;
while(tpr)
{tpc=tpr->head;
while(tpc)
{if(0==strcmp(pc->identity_card,tpc->identity_card) && 0==strcmp(pc->date,tpc->date) )
{fprintf(fp,"Error %d:the same client:%s lived in our hotel in the same day:%s\n",++i,pc->identity_card,pc->date);
fprintf(fp,"roomnu identity_card name sex date clt time cost fee\n");
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n",pc->roomnu,pc->identity_card,pc->name,pc->sex,pc->date,pc->collect,pc->time,pc->cost,pc->fee);
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n\n",tpc->roomnu,tpc->identity_card,tpc->name,tpc->sex,tpc->date,tpc->collect,tpc->time,tpc->cost,tpc->fee);
}/*完成........3.....*/
if(0==strcmp(pc->identity_card,tpc->identity_card) && (strcmp(pc->name,tpc->name)||strcmp(pc->sex,tpc->sex)) )
{fprintf(fp,"Error %d:the same client:%s have the different name or sex in our hotel.\n",++i,pc->identity_card);
fprintf(fp,"roomnu identity_card name sex date clt time cost fee\n");
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n",pc->roomnu,pc->identity_card,pc->name,pc->sex,pc->date,pc->collect,pc->time,pc->cost,pc->fee);
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n\n",tpc->roomnu,tpc->identity_card,tpc->name,tpc->sex,tpc->date,tpc->collect,tpc->time,tpc->cost,tpc->fee);
}/*完成........4.....*/
tpc=tpc->next;
}/*while(tpc) exit */
tpr=tpr->next;
}/*while(tpr) exit */
}
else/*当前客户下一节点为空的情况搜索*/
{tpr=pr->next;
while(tpr)
{tpc=tpr->head;
while(tpc)
{if(0==strcmp(pc->identity_card,tpc->identity_card) && 0==strcmp(pc->date,tpc->date) )
{fprintf(fp,"Error %d:the same client:%s lived in our hotel in the same day:%s\n",++i,pc->identity_card,pc->date);
fprintf(fp,"roomnu identity_card name sex date clt time cost fee\n");
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n",pc->roomnu,pc->identity_card,pc->name,pc->sex,pc->date,pc->collect,pc->time,pc->cost,pc->fee);
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n\n",tpc->roomnu,tpc->identity_card,tpc->name,tpc->sex,tpc->date,tpc->collect,tpc->time,tpc->cost,tpc->fee);
}/*完成........3.....*/
if(0==strcmp(pc->identity_card,tpc->identity_card) && (strcmp(pc->name,tpc->name)||strcmp(pc->sex,tpc->sex)) )
{fprintf(fp,"Error %d:the same client:%s have the different name or sex in our hotel.\n",++i,pc->identity_card);
fprintf(fp,"roomnu identity_card name sex date clt time cost fee\n");
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n",pc->roomnu,pc->identity_card,pc->name,pc->sex,pc->date,pc->collect,pc->time,pc->cost,pc->fee);
fprintf(fp,"%-6s %-18s %-15s %-3s %-8s %-3s %-4.1f %-5.1f %-5.1f\n\n",tpc->roomnu,tpc->identity_card,tpc->name,tpc->sex,tpc->date,tpc->collect,tpc->time,tpc->cost,tpc->fee);
}/*完成........4.....*/
tpc=tpc->next;
}/*while(tpc) exit */
tpr=tpr->next;
}/*while(tpr) exit */
}
pc=pc->next;/*搜索一次全表过掉一个客户*/
}/*while(pc) exit */
pr=pr->next;
}/*while(pr) exit */
printf("Maintain NO. %d\n",++count);
fclose(fp);
return 1;
}
int ToDate(char *date,int year,int month,int day)/*将年月日转换为字符串*/
{int i,j;
char temp[9];
for(i=3;i>-1;i--)
{j=year%10;
temp[i]=j+'0';
year=year/10;
}
for(i=1;i>-1;i--)
{j=month%10;
temp[4+i]=j+'0';
month=month/10;
}
for(i=1;i>-1;i--)
{j=day%10;
temp[6+i]=j+'0';
day=day/10;
}
temp[8]=0;
strcpy(date,temp);
return 1;
}
int Account(struct room *head_room)
{struct room *pr;
struct client *pc;
char temp[20],date[9],name[6];
float cost,fee;
int time,year,month,day;
int flag=1;
clr();
if(NULL==head_room) {printf("head_room=0\n");getch();clr();return 0;}
printf("Please input CLIENT ID(18bytes)!\n");/*mode=1表示根据身份证号查找特定客户*/
scanf("%s",temp);
while(strlen(temp)!=18)
{printf("Error:the client(ID=%s) is not 18 bytes!",temp);
printf("Please check and input CLIENT ID(18bytes),again!\n");/*mode=1表示根据身份证号查找特定客户*/
scanf("%s",temp);
}
/*查找客户*/
pr=head_room;
flag=1;
while(flag&&pr)
{pc=pr->head;
while(flag&&pc)
{if( !strcmp(pc->identity_card,temp)&&!pc->time)
{printf("roomnu identity_card name sex date clt time cost fee\n");
PrintClient(pc);
flag=0;
}
if(flag) pc=pc->next;
}
pr=pr->next;
}
if(NULL==pc) {printf("Error:the client(ID=%s) does not exist in out hotel!\n",temp);getch();clr();return 0;}
/*获取日期*/
year =GetTime(0,1);
month=GetTime(0,2);
day =GetTime(0,3);
ToDate(date,year,month,day);
time=CountDays(pc->date,date);
cost=time*pr->unit_price;
printf("The client ID=%s who have lived %d days should pay %6.1f $!\n",temp,time,cost);
printf("Please input how much you get from him and your name!\n");
printf("The money is:");
scanf("%f",&fee);
printf("Your name(collect) is:");
scanf("%s",name);
while(strlen(name)>5)
{printf("Error:the name=%s is longer than 5 bytes!",name);
printf("Please check and input ,again!\n");/*mode=1表示根据身份证号查找特定客户*/
scanf("%s",name);
}
pc->fee=fee;
pc->cost=cost;
pc->time=time;
strcpy(pc->collect,name);
printf("Account end! Thank you!\n");
return 1;
}