上一页 1 ··· 11 12 13 14 15
摘要: 1 #include "stdio.h" 2 #define MaxVertexNum 20 //定义图的最大顶点数 3 #define MaxEdgeNum 50 //定义图的最大边数 4 #define MaxValue 1000 //定义MaxValue为全局整型常量,作为无穷大 5 type 阅读全文
posted @ 2018-07-02 19:22 9529 阅读(330) 评论(0) 推荐(0)
摘要: 1 #include"stdio.h" 2 #include"malloc.h" 3 typedef int datatype; 4 5 #define MAXSIZE 50 //队列的最大容量 6 //定义队列结构体 7 typedef struct 8 { 9 datatype data[MAX 阅读全文
posted @ 2018-07-02 19:21 9529 阅读(393) 评论(0) 推荐(0)
摘要: 1 #include "stdio.h" 2 #include "malloc.h" 3 typedef int datatype; 4 typedef struct node //定义链式栈结构 5 { datatype data; 6 struct node *next; 7 }StackNod 阅读全文
posted @ 2018-07-02 19:21 9529 阅读(699) 评论(0) 推荐(0)
摘要: 二叉树 建立二叉树,先序、中序、后序、层次的遍历此二叉树,并求叶子结点个数、树的高度( 用递归或非递归的方法都可以)。 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include<conio.h> 4 #define ERROR 0 5 #define 阅读全文
posted @ 2018-07-02 19:19 9529 阅读(272) 评论(0) 推荐(0)
摘要: *问题描述:一堆猴子都有编号,编号是1,2,3 ...m ,这群猴子(m个)按照1-m的顺序围坐一圈,从第1开始数,每数到第N个,该猴子就要离开此圈,这样依次下来,直到圈中只剩下最后一只猴子,则该猴子为大王。 *输入数据:输入m,n。要求 m,n 为整数,n<m。 *输出形式:中文提示按照m个猴子, 阅读全文
posted @ 2018-07-02 19:15 9529 阅读(367) 评论(0) 推荐(0)
摘要: 1 #include "stdio.h" 2 #include "malloc.h" 3 #define datatype int 4 typedef struct node 5 { 6 datatype data; //链表的数据域 7 struct node *next; //链表的指针域 8 阅读全文
posted @ 2018-07-02 19:12 9529 阅读(255) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-07-02 19:07 9529 阅读(0) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="{CHARSET}"> 5 <title>用户注册</title> 6 </head> 7 <body> 8 <table border="1" width="500" height="300" 阅读全文
posted @ 2018-04-02 12:42 9529 阅读(304) 评论(1) 推荐(0)
上一页 1 ··· 11 12 13 14 15