原创 已有a,b兩個鏈表,每個鏈表中的結點包括學號,成績。要求把兩個鏈表合併,按學號升序排列。
#include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; float score; struct s
原创 函數指針
之前我們瞭解了指針,知道如何定義一個指針,接着知道二級指針如何使用。下面我們簡單的來回憶一下:int a = 10; //一個整形變量 int *p = &a; //一個指向整形的指針 int **q = &p;
原创 有兩個鏈表a,b,設結點包括學號,姓名。從a鏈表中刪去與b鏈表中有相同學號的那些結點。
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct linknode { int num; char name[20]; str
原创 《將博客搬至CSDN》
我要把博客搬到csdn嘍。