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