2015年12月25日

合并字符串(for hw)//详解malloc

摘要: eg : int* p; p = (int *) malloc (sizeof(int));或者 int a; char* c = malloc(sizeof(a) * len);合并两个字符串,每个字符串长度不小于1不超过50,主函数已经给出,在join.h头文件中完成join函数,函数原型... 阅读全文
posted @ 2015-12-25 17:19 _阿赞 阅读(479) 评论(0) 推荐(0) 编辑

结构体指针

摘要: 1 #include 2 struct stu{ 3 int num; 4 float score; 5 struct stu* next; 6 }; 7 8 int main() { 9 struct stu a, b, c, *head, *p;10 ... 阅读全文
posted @ 2015-12-25 17:12 _阿赞 阅读(196) 评论(0) 推荐(0) 编辑