c新手吧 关注:8,586贴子:48,089
  • 0回复贴,共1

代码报错,求解

只看楼主收藏回复

#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>typedef struct{char s[10];int t;}FZ;FZ *fun(FZ p){FZ *px;gets_s(p.s,10);scanf("%d", &p.t);px = &p;return px;}main(){FZ c, *f;f = fun(c);printf("%s,%d\n", f->s, f->t);}


IP属地:广东来自iPhone客户端1楼2017-10-10 15:20回复