摘要: C中内存分配的问题: 1. #include #include #include #include void GetMemory(char **p) { *p=(char *)malloc(100); } void Test() { char **str; GetMemory(str); strcpy(*str, "hello world")... 阅读全文
posted @ 2007-12-06 18:46 中土 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 12.6 SJTU 整体来讲,题目出的没水平。 qualify question: 略 选择题:略 大题: 1. 反转链表 #include using namespace std; struct LNode { char data; LNode * next; }; LNode * initList() { LNode *head=new LNode; ... 阅读全文
posted @ 2007-12-06 17:54 中土 阅读(1401) 评论(0) 推荐(0) 编辑
©2005-2008 Suprasoft Inc., All right reserved.