void chabook()
{
int i;
char name[30];
struct book;
cleardevice();
setbkcolor(2);
scanf("%d",s[c].no);
scanf("%d",s[c].d);
scanf("%s",s[c].na);
scanf("%s",s[c].w);
scanf("%d",s[c].day);
scanf("%f",s[c].m);
scanf("%d",s[c].be);
scanf("%d",s[c].send);
s[c].nomber=s[c].be+s[c].send;
printf("\nThe name what you want to find:\n");
scanf("%s",&name);
for(i=0;i<n;i++)
{
if(strcmp(name,s[c].na)==0)
{
printf("\nThe data is:");
pinrtf("\n| Serial number | code book | title | author | publication time | price | inventory | number out | whole |\n",s[i].no,s[i].d,s[i].na,s[i].w,s[i].day,s[i].m,s[i].be,s[i].sent,s[i].nomber");
}
if(i>=n)
printf("\nNO BOOK YOU FIND!\n");
}
printf(" END ,enter 'o' exit");
getchar();
}
中出现non-portable pointer conversion in function chabook的警告。………………有大神帮我弄明白整个大程序最好…………
慕标5832272
慕村225694
相关分类