码迷,mamicode.com
首页 >  
搜索关键字:network namespace    ( 53294个结果)
C++学习笔记8,const在函数方面的使用(二)
const在函数中也有很大的作用。 4.const修饰传入参数。      函数传入参数声明为const,以指明使用这种参数仅仅是为了效率的原因,而不是想让调用函数能够修改该传入参数的值。同理,将对象指针参数或引用参数声明为const,函数将不修改由这个参数所指的对象。     例如: #include using namespace std; //void change(const i...
分类:编程语言   时间:2014-05-26 05:52:27    阅读次数:266
【数据库摘要】8_Sql_Union
UNION 操作符 UNION 操作符用于合并两个或多个 SELECT 语句的结果集。 请注意,UNION 内部的每个 SELECT 语句必须拥有相同数量的列。列也必须拥有相似的数据类型。同时,每个 SELECT 语句中的列的顺序必须相同。 SQL UNION 语法 SELECT column_name(s) FROM table1 UNION SELECT column_name(...
分类:数据库   时间:2014-05-26 05:35:41    阅读次数:319
图书管理系统 library
#include #include #include #include #include #include using namespace std; void display(int);//输出信息 int size=0; class Book { public: void welcome();//欢迎界面 void welcome1(); void addboo...
分类:其他好文   时间:2014-05-26 04:57:10    阅读次数:344
层次遍历二叉树
按先序序列输入字符序列(其中逗号表示空节点),输出该二叉树的层次遍历序列。 #include #define END ','//表示空节点 using namespace std; typedef char Elem_Type; typedef struct BiTree { Elem_Type data; struct BiTree *Lchild; stru...
分类:其他好文   时间:2014-05-26 04:53:07    阅读次数:261
2014 BNU 邀请赛B题(枚举)
Beautiful Garden 题意:x轴上放了一些树,现在要移动一些树使得所有树都等间距,问最少要移动多少棵 思路:枚举,枚举第一棵树,和另一棵树,以及中间有多少树,这样就能知道等差数列的首项和公差,然后再循环一边计算出答案,保存最小值 代码: #include #include #include #include using namespace std; #define...
分类:其他好文   时间:2014-05-26 04:28:52    阅读次数:233
[HAOI2010]最长公共子序列
#include #include #include using namespace std; const int m=(int)1E8; string s1,s2; int f[2][5001]={0},g[2][5001]={0}; void init(); void work(); int my_max(int,int); int main() { freopen("lcs.in","r"...
分类:其他好文   时间:2014-05-26 04:07:17    阅读次数:305
Hadoop认知--在不同的阶段
记录在不同的学习使用阶段,个人对Hadoop的认识情况,当前入门阶段,介绍入门阶段对Hadoop的看法。...
分类:其他好文   时间:2014-05-26 03:18:12    阅读次数:275
Android 4.4 Kitkat 使能有线网络 Ethernet
背景 Android kitkat 默认已经支持 Ethernet 有线网络,只要稍微配置,便可以直接使用,测试结果,网络浏览器和下载都没有没有问题,而且系统可以做到与 wifi 共存,互相不影响功能,这里简单介绍如何使能 Ethernet,并简要分析其代码和流程。 Linux 配置部分 Linux 需要能够支持有线网络,生成 eth 网络设备节点。 Android...
分类:移动开发   时间:2014-05-26 03:11:24    阅读次数:362
zoj-1610-Count the Colors-线段树-区域更新,单点查询
线段树的区域更新,然后单点查询。 x1 x2 c:区域更新x1-x2为c。 全部染色之后,从0-8000依次查询每个点的颜色。然后存贮每一种颜色有几块。 #include #include #include #include #include using namespace std; #define lmin 0 #define rmax 8000 #define lson l,(l+r)/...
分类:其他好文   时间:2014-05-24 19:10:12    阅读次数:221
poj 2401 划分树 求区间第k大的数
题目:http://poj.org/problem?id=2104 划分树待我好好理解下再写个教程吧,觉得网上的内容一般,,, 模板题: 贴代码: #include #include #include #include using namespace std; #define CLR(a) memset(a,0,sizeof(a)) const int MAXN = 100010...
分类:其他好文   时间:2014-05-24 18:10:18    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!