#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); }
原文地址:https://www.cnblogs.com/sunnybowen/p/8977099.html
时间: 2024-10-03 14:45:22