数据结构
qq_18348403
CS
展开
-
数据结构(C语言版)课后习题1.4
非常简单,没什么好说的#include void ascending_sort(int x,int y,int z); int main(void) { int x,y,z; scanf("%d %d %d",&x,&y,&z); ascending_sort(x,y,z); return 0; } void ascending_sort(int x,int y,int z) {原创 2015-04-18 12:44:17 · 763 阅读 · 0 评论 -
数据结构(C语言版)课后习题1.2霍纳规则
题目: 《数据结构》(C语言版)(美)Ellis Horowitz Sartaj Sahni Susan Anderson-Freed著,李建中 张岩 李冶军 译 P9第2题 思想递归: #include void Horner(int list[],int k,int x,int i,int n); int main(void) { int li原创 2015-04-18 12:29:30 · 622 阅读 · 0 评论 -
数据结构(C语言版)课后习题1.3
题目: 《数据结构》(C语言版)(美)Ellis Horowitz Sartaj Sahni Susan Anderson-Freed著,李建中 张岩 李冶军 译 P9第3题 思想:迭代 #include void perm(int list[],int n,int i); int main(void) { int list[5]; perm原创 2015-04-18 12:33:31 · 1346 阅读 · 0 评论 -
数据结构(C语言版)课后习题2.1
typedef struct plant { char name[20]; int satellite_number; float distance_sun; }; plant earth,venus; 赋值过程略去原创 2015-04-21 09:52:25 · 1146 阅读 · 0 评论