文章分类 - 03_编程语言 / 01_C语言
摘要:线性表的链式存储结构及基本操作 typedef struct LNode *List; struct LNode{ ElementType Data; List Next; }; struct LNode L; List PtrL; 1、求表长 int Length(List PtrL) { Lis
阅读全文
摘要:练习5-1 #include <stdio.h> int sum(int m, int n); int main() { int m, n; scanf("%d %d", &m, &n); printf("sum = %d\n", sum(m, n)); return 0; } /* 你的代码将被嵌
阅读全文
摘要:S1E11 if函数 0、 #include <stdio.h> #define STRING char * #define IF if( #define THEN ){ #define ELSE }else{ #define FI ;} #define DO ){ #define OD ;} #d
阅读全文
摘要:S1E2:第一个程序 Windows下统计当前目录及子目录下,C语言源代码总行数 #include <io.h> #include <direct.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 25
阅读全文
摘要:数据结构(data structure)是计算机中存储、组织数据的方式。通常情况下,精心选择的数据结构可以带来最优效率的算法。 例1:如何在书架上摆放图书 怎么插入 怎么查找 方法一:随便放,容易插入,不易查找 方法二:拼音字母顺序排放,不易插入,容易查找 方法三:按书类别划分区域排放,容易插入,容
阅读全文

浙公网安备 33010602011771号