通过函数完成对结构体变量的输入和输出
摘要:
1/*结构体变量和结构体指针变量作为函数参数传递的问题2通过函数完成对结构体变量的输入和输出。3*/45#include<stdio.h>6#include<string.h>789structStudent10{11intage;12charsex;13charname[100];14};//分号不能少1516voidInputStudent(structStudent*);17voidOutputStudent(structStudentss);181920intmain(void)21{22structStudentst;2324InputStudent(& 阅读全文
posted @ 2012-09-05 22:47 Your Song 阅读(3288) 评论(1) 推荐(0) 编辑