码迷,mamicode.com
首页 >  
搜索关键字:network namespace    ( 53294个结果)
c++ c# java 调用 c++ 写的dll
1. vs 中新建win32 dll 项目 testdll添加实现文件 test.cpp#include "stdafx.h" #include using namespace std;int Add(int plus1, int plus2){ int add_result = plus1 ...
分类:编程语言   时间:2014-05-19 10:25:52    阅读次数:309
POJ 2828 Buy Tickets(神题!线段树or树状数组)
题目链接:POJ 2828 Buy Tickets【题意】给了你 n(1 7 #include 8 #include 9 using namespace std;10 const int MAX = 200005;11 12 int pos[MAX], val[MAX], ans[MAX];13.....
分类:其他好文   时间:2014-05-19 10:10:34    阅读次数:282
HDU 2795 Billboard(线段树)
题目链接:HDU 2795 Billboard【题意】给你一张h*w(1 7 #include 8 #include 9 using namespace std;10 const int MAX = 200005;11 12 int tree[MAX= val)26 {27 ...
分类:其他好文   时间:2014-05-19 10:09:17    阅读次数:419
hust 1625 Chessboard
题目描述Given an N*N(N#include#include#includeusing namespace std;const int maxn=1001;int group[maxn][maxn];bool vis[maxn][maxn];int dx[4]={0,0,1,-1};int ...
分类:其他好文   时间:2014-05-19 09:06:30    阅读次数:379
Codeforces Round #246 (Div. 2) A. Choosing Teams
给定n k以及n个人已参加的比赛数,让你判断最少还能参加k次比赛的队伍数,每对3人,每个人最多参加5次比赛#include using namespace std;int main(){ int n,k, cnt = 0; cin >> n >> k; for(int i = 0 ...
分类:其他好文   时间:2014-05-19 08:40:56    阅读次数:239
AC自动机
hdu2222 字符串多模匹配算法 采用kuangbin模板#include #include #include #include #include using namespace std;struct Trie{ int next[500010][26],fail[500010],end[5...
分类:其他好文   时间:2014-05-19 08:36:17    阅读次数:234
oracle:ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务
Win7旗舰版安装Oracle11g后,数据库可以正常使用,重启系统,再次连接数据库,提示:ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务解决方法: 1、打开listener.ora文件(\product\11.2.0\dbhome_1\NETWORK\ADMIN\)。 .....
分类:数据库   时间:2014-05-19 08:20:35    阅读次数:301
浅析C/C++中的switch/case陷阱
浅析C/C++中的switch/case陷阱 先看下面一段代码: 文件main.cpp#includeusing namespace std;int main(int argc, char *argv[]){ int a =0; switch(a) { case ...
分类:编程语言   时间:2014-05-19 07:08:14    阅读次数:429
C++PRIMER 阅读笔记 第三章
本章主要介绍 string vector 和 bitset, 不能贪多,现在本文主要介绍 string 与 vector头文件中最好不要使用namespace std, 因为头文件会直接被预处理器放置到C中std::string 的构造方式: string s1; string s2(s1); st...
分类:编程语言   时间:2014-05-18 20:31:41    阅读次数:378
tsinsen A1486. 树(王康宁) 边分治+字典树
不知为何,这个代码只能得95分放一下傻逼代码。。。#include#include#include#includeusing namespace std;int n,K;int nn2=1,nn=1,nod;#define N 1000000#define ed(x) (x>>1)#define a...
分类:其他好文   时间:2014-05-17 17:55:40    阅读次数:425
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!