码迷,mamicode.com
首页 >  
搜索关键字:network namespace    ( 53294个结果)
poj--2782
题意:贪心,排序后大数与小数相加具体代码:#include #include #include #include #include using namespace std;#define maxn 100005int n, m;int f[maxn];int cmp(int a, int b){ ....
分类:其他好文   时间:2014-05-19 19:42:31    阅读次数:233
hdu 3038 How Many Answers Are Wrong
http://acm.hdu.edu.cn/showproblem.php?pid=3038 1 #include 2 #include 3 #include 4 #define maxn 600000 5 using namespace std; 6 7 int f[maxn],d[max...
分类:其他好文   时间:2014-05-19 18:51:33    阅读次数:252
Linux中如何配置IP
与网络相关的文件:1) /etc/sysconfig/network 设置主机名称及能否启动Network2) /etc/sysconfig/network-scripts/ifcfg-eth0 设置网卡参数的文件3) /etc/modprobe.conf 开机时用来设置加载内核模块的文件4) /e...
分类:系统相关   时间:2014-05-19 18:39:50    阅读次数:324
无限逼近思想
//#define LOCAL#include#includeusing namespace std;int const MAX_N=100001;int const INF=10000000;int N,M,x[MAX_N];void init(){ for(int i=0;i1) {...
分类:其他好文   时间:2014-05-19 17:20:45    阅读次数:204
HDU 1573 X问题 (中国剩余定理)
题目链接题意 : 中文题不详述。思路 : 中国剩余定理。求中国剩余定理中解的个数。看这里看这里 1 //1573 2 #include 3 #include 4 #include 5 6 using namespace std ; 7 8 long long x,y ; 9 long lo...
分类:其他好文   时间:2014-05-19 16:48:21    阅读次数:207
堆排序的实现
#includeusing namespace std;//大根堆,从小到达排序int a[101];void swap(int &a,int &b){ a=a^b; b=a^b; a=a^b; }void adjust(int *a,int root,int len){ int max=root;...
分类:其他好文   时间:2014-05-19 15:13:43    阅读次数:219
将数组传递给函数
1 #include 2 #include 3 using namespace std; 4 5 void modifyArray(int [], int); 6 void modifyElement(int); 7 8 int main() 9 {10 const int arr...
分类:其他好文   时间:2014-05-19 15:12:27    阅读次数:257
[游戏学习22] MFC 井字棋 双人对战
>_____ 2 #include "TicTac.h" 3 #include 4 #include 5 #include 6 using namespace std; 7 CMyApp myApp; 8 /*ofstream Cout("out.txt"); 9 void CM...
分类:其他好文   时间:2014-05-19 14:34:51    阅读次数:430
计算机常用英语词汇
计算机常用英语词汇一、硬件类(Hardware)二、软件类(Software)三、网络类(Network)四、其它CPU(CenterProcessorUnit)中央处理单元Mainboard主板RAM(randomaccessmemory)随机存储器(内存)ROM(ReadOnlyMemory)....
分类:其他好文   时间:2014-05-19 14:14:19    阅读次数:423
C++ 单链表模板类实现
单链表的C语言描述基本运算的算法——置空表、求表的长度、取结点、定位运算、插入运算、删除运算、建立不带头结点的单链表(头插入法建表)、建立带头结点的单链表(尾插入法建表),输出带头结点的单链表#include#includeusing namespace std;template class Lin...
分类:编程语言   时间:2014-05-19 11:55:01    阅读次数:541
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!