#include<stdio.h> struct student{ int num; char name[20]; float score; } stu={112301,"bowen1",20}; void print(struct student *p); int main(void){ print(&stu); } void print(struct student *p){ printf("%d %s %0.1f",p->num,p->name,p->score); }
语法*第九章*5 结构体指针作为函数参数
猜你喜欢
转载自www.cnblogs.com/sunnybowen/p/8977099.html
今日推荐
周排行