摘要: 网络层 网络层提供四种服务:分组化处理、查找下一跳的逻辑地址、查找下一跳的物理地址、对数据报进行必要的分片处理。 一、概述 1、交换:电路交换、分组交换 电路交换: 分组交换:来自上层的报文被分割成便于管理的一个个分组,再通过网络发送这些分组。报文的源点逐个发送分组,而其终点也逐个接收这些分组,等到 阅读全文
posted @ 2016-08-11 22:08 Axel_uestc 阅读(918) 评论(0) 推荐(0) 编辑
摘要: // exam3.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<iostream>using namespace std; /* 数组1 2 8 9 2 4 9 12 4 7 10 13 6 8 11 15 */ int array[4][4] 阅读全文
posted @ 2016-08-04 15:32 Axel_uestc 阅读(329) 评论(0) 推荐(0) 编辑
摘要: SQL常用语句 一、查看数据库 1、 显示所有的数据库 命令:show databases; (注意:最后有个s) 2、 创建数据库 命令:create database 【数据库名】; 3、.查看当前使用的数据库 命令:select database(); 二、对表进行操作 A、创建表前及创建表时 阅读全文
posted @ 2016-08-03 20:10 Axel_uestc 阅读(166) 评论(0) 推荐(0) 编辑
摘要: // xuanze-sort.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<iostream>#include<string>#include<vector>//vector向量容器using namespace std; /********* 阅读全文
posted @ 2016-08-03 20:05 Axel_uestc 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include<iostream>#include<string>#include<vector>//vector向量容器using namespace std; /*********************************************** 阅读全文
posted @ 2016-08-03 20:04 Axel_uestc 阅读(125) 评论(0) 推荐(0) 编辑
摘要: // xuanze-sort.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<iostream>#include<string>#include<vector>//vector向量容器#include<deque>#include<list>#i 阅读全文
posted @ 2016-08-03 20:03 Axel_uestc 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include<iostream>#include<string>#include<vector>//vector向量容器#include<deque>#include<list>#include<algorithm>using namespace std;/ 阅读全文
posted @ 2016-08-03 19:59 Axel_uestc 阅读(126) 评论(0) 推荐(0) 编辑
摘要: // xuanze-sort.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<iostream>#include<string>#include<vector>//vector向量容器#include<deque>using namespace 阅读全文
posted @ 2016-08-03 19:58 Axel_uestc 阅读(169) 评论(0) 推荐(0) 编辑
摘要: // xuanze-sort.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<iostream>#define MAXSIZE 100 //定义线性表的最大长度#include "stdio.h"#include <stdlib.h>#inclu 阅读全文
posted @ 2016-07-31 19:20 Axel_uestc 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 一、动态内存分配 1、 c语言中动态内存分配的步骤: (1) 用mallocl类的函数分配内存; (2) 用这些内存支持应用程序; (3) 用free函数释放内存 例如: 2、 内存泄露 如果不再使用已分配的内存却没有将其释放,就会发生内存泄露,导致内存泄露的情况可能如下: (1) 丢失内存地址 在 阅读全文
posted @ 2016-07-29 11:08 Axel_uestc 阅读(284) 评论(0) 推荐(0) 编辑