热门

最新

红包

立Flag

投票

同城

我的

发布
qq_51454893
qq_51454893
4 年前
trueqq_51454893

#include <iostream>using namespace std;#include "stdio.h"#include "stdlib.h"#include "string.h"#define MAXSIZE 20//实例顺序表最大长度 后序可以更改typedef struct chsystem{ char name;//姓名 char number[20];//手机 char other;//小组}phonecontent;//通讯录类型typedef struct{ phonecontent user[MAXSIZE+1];//user[0]闲置 int length;}PhoneList;//通讯录结构体void read(PhoneList L){ L.user[0].name = 'a'; L.user[1].name = 'b'; printf("%c\n",L.user[0].name);}void ASD(PhoneList L){ L.user[0].name=L.user[1].name; printf("%c\n",L.user[0].name);}int main(){ PhoneList L; read(L); ASD(L); return 0;}

代码运行后就输出一个数值
跪求大神解答

你问我答
CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
我用#CSDN#这个app发现了有技术含量的博客,小伙伴们求同去《PHP实现简单的网站访客统计》, 一起来围观吧 https://blog.csdn.net/weixin_46678271/article/details/112389045?utm_source=app
立即登录