上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: 在默认状态下,Windows会打开很多“服务端口”,如果你想查看本机打开了哪些端口、有哪些电脑正在与本机连接.Windows提供了netstat命令,能够显示当前的 TCP/IP 网络连接情况,注意:只有安装了TCP/IP协议,才能使用netstat命令。在命令提示符下打netstat -an命... 阅读全文
posted @ 2016-01-19 16:53 Joe.Smith 阅读(1381) 评论(0) 推荐(0) 编辑
摘要: 二维数组再学习 二维数组定义的一般形式是: 类型说明符 数组名[常量表达式1][常量表达式2] inta[3][4]; 即: a[0][0],a[0][1],a[0][2],a[0][3] a[1][0],a[1][1],a[1][2],a[1][3] a[... 阅读全文
posted @ 2016-01-19 11:11 Joe.Smith 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 1.将用户涉及到的两个配置文件(详细信息与密码) 合并成一个文件,然后排序去冗输出为 简拼-1.txt 。 #cat /proc/meminfo /proc/cpuinfo /proc/cpuinfo /proc/meminfo | sort | uniq > test2.txt ... 阅读全文
posted @ 2015-12-30 11:59 Joe.Smith 阅读(250) 评论(0) 推荐(0) 编辑
摘要: //排序:/* 1、录入学生基本信息 2、直接插入排序 3、冒泡排序 4、快速排序 5、简单选择排序 6、堆排序 7、2-路归并排序 8、输出学生信息*/#include#includetypedef struct{ char name[20]; int num; int score;... 阅读全文
posted @ 2015-12-24 12:37 Joe.Smith 阅读(679) 评论(0) 推荐(0) 编辑
摘要: //查找:#include#include#includetypedef struct{ int *elem; int length;}SStable;typedef struct SYlist{ int num; int *Key; int *start;}SYlist;void Creat... 阅读全文
posted @ 2015-12-24 12:35 Joe.Smith 阅读(377) 评论(0) 推荐(0) 编辑
摘要: //邻接矩阵:#include#include#define MAX_VERTE_NUM 20#define Stack_size 100#define Stackincreament 10int visited[MAX_VERTE_NUM];typedef int AdjMatrix[MAX... 阅读全文
posted @ 2015-12-24 12:33 Joe.Smith 阅读(830) 评论(0) 推荐(0) 编辑
摘要: //邻接表:#include#include#define MAX 100#define Stack_size 100#define Stackincreament 10#define MAX_VERTE_NUM 20int visited[MAX_VERTE_NUM];typedef stru... 阅读全文
posted @ 2015-12-24 12:32 Joe.Smith 阅读(568) 评论(0) 推荐(0) 编辑
摘要: /*(1)采用下列方法之一建立二叉树的二叉链表:① 输入完全二叉树的先序序列,用#代表虚结点(空指针),如ABD###CE##F##,建立二叉树的二叉链表。② 已知二叉树的先序遍历序列和中序遍历序列,或者已知二叉树的中序遍历序列和后序遍历序列,建立二叉树的二叉链表。③ 将一棵二叉树的所有结点存储... 阅读全文
posted @ 2015-12-24 12:30 Joe.Smith 阅读(237) 评论(0) 推荐(0) 编辑
摘要: //顺序表:#include#include#define maxlength 20#define listincreament 10typedef struct { int *elem; int length; int listsize;}sqlist;void T_creat(sqlist ... 阅读全文
posted @ 2015-12-24 12:26 Joe.Smith 阅读(880) 评论(0) 推荐(0) 编辑
摘要: //链表操作:#include#includetypedef struct pNode{ int data; struct pNode *next;}*linklist,node;void creat(linklist &la,int n){ linklist p,pre; la=(linkli... 阅读全文
posted @ 2015-12-24 12:25 Joe.Smith 阅读(347) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页