数据结构预热:跨函数使用内存
摘要:
1#include<stdio.h>2#include<malloc.h>34structStudent5{6intsid;7intage;8};9structStudent*creat(void);10voidshow(structStudent*);11intmain(void)12{13structStudent*ps;14ps=creat();15show(ps);16return0;17}18structStudent*creat(void)19{20structStudent*pst=(structStudent*)malloc(sizeof(structS 阅读全文
posted @ 2012-11-04 20:52 Your Song 阅读(158) 评论(0) 推荐(0) 编辑