码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
VS 报cmath(19): error C2061: 语法错误: 标识符“acosf” 错误
这是因为我在.c文件中用了 #include using namespace std; 这样编译的时候就报: 出现错误类型如下:1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(19): error C206...
分类:其他好文   时间:2014-09-04 18:48:49    阅读次数:6125
分治法-棋盘覆盖问题 C++代码实现
一个非常经典的题,用分治法来做。每次将棋盘分割成4块,对于原本不存在空白格的棋盘要用一个L骨牌来构造空白格。#include#include#include#include#include#include#define LL long longusing namespace std;int num;...
分类:编程语言   时间:2014-09-04 18:32:39    阅读次数:347
POJ 2887 Big String 线段树 离线处理
一开始看的时候没什么思路,后来一看卧槽不是简单的离线处理么。反着插入一遍然后直接查询就好了。#include #include #include using namespace std;#define lson rt > 1; build(lson); build(rson); ...
分类:其他好文   时间:2014-09-04 18:32:29    阅读次数:186
zoj1530 bfs
1 //Accepted zoj1530 270ms 40008KB 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int imax_n = 205; 8 string a[imax...
分类:其他好文   时间:2014-09-04 18:18:49    阅读次数:251
uva 1330 City Game (最大子矩阵)
空白最多的最大子矩阵: #include #include #include using namespace std; const int maxn = 1005; int mat[maxn][maxn],up[maxn][maxn],left[maxn][maxn],right[maxn][maxn]; int main() { int t; scanf("%d",&t); ...
分类:其他好文   时间:2014-09-04 17:02:59    阅读次数:209
boost addressof--正确获取重载了&的类的对象的地址
在c++中,我们想获取一个对象的地址,直接&(取地址符)就可以,但是如果一个了类重载的&运算符,我们怎么获取它的对象的地址呢?如:#include #include using namespace std;class foo{public: int operator&(){ re...
分类:其他好文   时间:2014-09-04 16:35:39    阅读次数:177
C语言char[]和char*比较
先看看一个例子: 1 #include 2 using namespace std; 3 4 main() 5 { 6 char *c1 = "abc"; 7 char c2[] = "abc"; 8 char *c3 = ( char* )malloc(3); 9 c...
分类:编程语言   时间:2014-09-04 16:33:19    阅读次数:237
hdu 2141 Can you find it? 二分
#include #include using namespace std; #define ll __int64 int a[600]; int c[600]; int main() { int i,l,m,r,flag,op,tem,j; setmy; int cas=1; while(scanf("%d%d%d",&l,&m,&r)!=EOF) { my.clear(); for(i=0;i<l;i++) { scanf("%d",&a...
分类:其他好文   时间:2014-09-04 14:56:19    阅读次数:205
Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser]
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework...
分类:编程语言   时间:2014-09-04 14:53:39    阅读次数:434
usaco-2.2-runaround-pass
这个题意,呵呵,要理解清楚:/*ID: qq104801LANG: C++TASK: runround*/#include #include #include #include #include #include using namespace std;int n;void numtostr(int...
分类:其他好文   时间:2014-09-04 14:43:29    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!