为了账号安全,请及时绑定邮箱和手机立即绑定

输入的网站名和网址输出错误。

输入的网站名和网址输出错误。

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 关注
  • 1144 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号