第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

文件操作問題。fscanf讀取為負數(shù)?

文件操作問題。fscanf讀取為負數(shù)?

C++ C
萌新程序猿orz 2019-04-09 21:16:29
struct?student?*read_file(){ int?i=0; struct?student?*p1=NULL,*head=NULL,*p2=NULL; FILE?*pfile; pfile?=?fopen("student.txt","r"); if(pfile?==?NULL) { printf("+?????????????????????未發(fā)現(xiàn)存檔????????????????????+\n"); return?0;} while(!feof(pfile)){ p1?=?(struct?student*)malloc(LEN); fscanf(pfile,"%d%d%d%s%s%s%s%s",&p1->idnum,&p1->cardnum,&p1->date,p1->school,p1->sex, &p1->major,&p1->iden,p1->name);???? p1->next=NULL;???? if(i==0)?head=p1;???? else?p2->next=p1;???? p2=p1;???? i++;} fclose(pfile); printf("+?????????????????????讀檔成功?????????????????????+\n"); return?head;}我的idnum是201820020304 這么長的,可是輸入的卻是負數(shù),請教大佬
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 1466 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號