码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
C++字典的线性表实现。
#include #include using namespace std; struct SchoolNo { int no; friend bool operator == (const SchoolNo &school1,const SchoolNo &school2) { return (school1.no==school2.no); } friend ostrea...
分类:编程语言   时间:2015-04-07 15:42:48    阅读次数:123
BZOJ 3932 CQOI2015 任务查询系统 可持久化线段树
题目大意见http://pan.baidu.com/s/1o6zajc2 主席树裸上就好了。。。 #include #include #include #include #define M 100100 using namespace std; struct Segtree{ Segtree *ls,*rs; int size; long long sum; void* op...
分类:其他好文   时间:2015-04-07 15:41:45    阅读次数:129
c++集合。
#include #include using namespace std; #define SIZE 10 #define NULL_DATA -1 class Node { public: Node(int x=SIZE) { data = new int[x]; for(int i=0;i<x;i++) { data[i] = NULL_DATA; } } ...
分类:编程语言   时间:2015-04-07 15:40:40    阅读次数:184
C++中setbit的实现(没有使用引用技术)
#include #include #define CHAR_BIT 8 using namespace std; template class bitset { typedef unsigned long _Ty; friend ostream & operator &_R) { for(size_t _P=_N;_P>0;) _O<<(_R.test(--_P)?'1...
分类:编程语言   时间:2015-04-07 15:40:31    阅读次数:285
蓝桥杯 小模拟
#include using namespace std; #define maxn 105 int m, n, x, y, k; char s; int a[maxn][maxn]; int cnt; void solve() { while(cnt++ < k) { if(s == 'U') { if(a[x...
分类:其他好文   时间:2015-04-07 15:39:23    阅读次数:132
Google C++ Style Guide 阅读笔记 3
命名空间应包裹include, 全局定义、声明和其他命名空间的前置声明之后的一切代码: // in the .h file namespace mynamespace{ // All declarations are within the namespace scope...
分类:编程语言   时间:2015-04-07 15:38:15    阅读次数:180
Linq DataTable 查询与修改
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; namespace WebApplication_study.Linq...
分类:其他好文   时间:2015-04-07 15:37:26    阅读次数:101
HihoCoder - Floyd算法
Floyd-Warshall算法其实是比较容易理解也比较容易coding的DP... 不说了,上代码:#include #include #include #include #include #include #include #include #include using namespace st...
分类:编程语言   时间:2015-04-07 15:09:24    阅读次数:133
BZOJ 3930 CQOI2015 选数 莫比乌斯反演
题目见 http://pan.baidu.com/s/1o6zajc2 此外不知道H-L #include #include #include #include #include #define M 10001000 #define INF 0x3f3f3f3f #define MOD 1000000007 using namespace std; int mu[M],p...
分类:其他好文   时间:2015-04-07 14:00:00    阅读次数:160
减谈迷宫C++
今天老师让做了个迷宫问题,我一看到就发现和我之前写过的一个程序是一样 的,但是在后来编写的时候有一个地方搞错了,最后下课了我还是没有正确的编写好,然后今天回来之后自己有看了一下,现在已经解决了。 #ifndef DIRECTION_H #define DIRECTION_H #include using namespace std; struct node { int a; int...
分类:编程语言   时间:2015-04-07 13:51:37    阅读次数:130
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!