亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

輸入的網站名和網址輸出錯誤。

輸入的網站名和網址輸出錯誤。

C
蕭子都 2017-12-23 16:10:01
#include<stdio.h>#include<string.h>struct web{?char abbr[20];?char fullname[40];?char url[100];};struct web *GetWeb(int n);struct web *GetWeb(int n){?int i;?struct web myweb[n],*p = &myweb[0];?for(i=0;i<n;i++)?{??scanf("%s %s %s",myweb[i].abbr,myweb[i].fullname,myweb[i].url);?}?return p;} int main(void){?int n,i;?struct web *p;?printf("Please input the number of the pages you want to enter:");?scanf("%d",&n);?p=GetWeb(n);?for(i=0;i<n;i++)?{??printf("%-20s%-40s%s\n",(*(p+i)).abbr,(*(p+i)).fullname,(*(p+i)).url);?}}
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關注
  • 1135 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號