码迷,mamicode.com
首页 >  
搜索关键字:invalid namespace    ( 44721个结果
Ubuntu 下的webservices
搞 了一下午: 给出代码: 1 root@ubuntu:/home/aries/Aries/gsoap# cat add.h //gsoapopt cw //gsoap ns2 schema namespace: urn:add //gsoap ns2 schema form: unqualified //gsoap ns2 service name: add //gsoap ns2 ser...
分类:Web程序   时间:2014-05-01 22:03:30    阅读次数:530
A*算法的寻路中的应用——无阻挡
按照之前转载的文章,自己先实现了下,表示还是很多坑: #include "stdio.h" #include #include #include #include using namespace std; int neigor[][2] ={ {-1, -1}, {0, -1}, {1, -1}, {1, 0}, {1, 1}, {0, 1}, {-1, 1}, {-1, 0} }...
分类:其他好文   时间:2014-05-01 18:03:27    阅读次数:320
POJ 3882 Stammering Aliens 后缀数组height应用
题目来源:POJ 3882 Stammering Aliens 题意:给你m一个一个字符串 求至少出现m次的最长字符串 可以在字符串中重叠出现 思路:二分长度l 然后从height数组中找长度大于等于l的前缀 #include #include #include using namespace std; const int maxn = 40010; char s[maxn]; in...
分类:其他好文   时间:2014-05-01 17:36:34    阅读次数:334
POJ - 2926 Requirements
题意:多维的曼哈顿最远距离 思路:做了1,2,3维的,其实就是枚举所有绝对值的可能的表达式 #include #include #include #include using namespace std; const int MAXN = 100005; const int M = 5; const double inf = 1e200; struct node{ double x...
分类:其他好文   时间:2014-05-01 17:31:01    阅读次数:283
hdu 1160 FatMouse's Speed
题目:寻找最长上升自序列。 代码: #include #include #include #include using namespace std; struct node { int w,s; //重量,速度 int num; //编号 int t; //用来记录当前编号...
分类:其他好文   时间:2014-05-01 17:17:32    阅读次数:285
namespace mismatch require错误处理方法
最近在进行两个项目开发时,需要使用WebService进行通信,在一个项目中使用axis2实现了,但在别一个项目中调用时,却发生异常,错误信息:namespace mismatch require http://webservice.transcoding.module.iefree.com found http://ws.apache.org/axis2/xsd产生错误的代码: public s...
分类:其他好文   时间:2014-04-30 22:33:39    阅读次数:266
cocos2d-x3.0 ScrollView
.h #include "cocos2d.h" #include "cocos-ext.h" #include "ui/CocosGUI.h" #include "cocostudio/CocoStudio.h" USING_NS_CC; USING_NS_CC_EXT; using namespace ui; .cpp layout = Layout::crea...
分类:其他好文   时间:2014-04-30 22:33:39    阅读次数:382
c++调用基类的构造函数(模板类)
代码如下 #include #include #include using namespace std; template class Base { public: Base(T name); virtual void toString(); protected: T id; }; template Base::Base(T n) { printf("B...
分类:编程语言   时间:2014-04-30 22:27:39    阅读次数:450
大数减法(改天弄PPT上去,现在太晚了,要睡觉了)
大数乘法的步骤(先戳我看看大数加法的思想): 首先是输入2个数据,并且逆序,还要去掉前导0。比较大小: 相等的话,结果为0。前者大于后者,则直接进行减法运算。前者小于后者,则用后者减去前者,最后在结果前面添上负号。 从最高位开始输出结果。 #include #include #define MAX 1000 using namespace std; void InputNu...
分类:其他好文   时间:2014-04-30 22:17:40    阅读次数:231
大整数的加减乘除
多项式的加减乘除可以利用多项式的加减乘除进行运算,所以以下程序采用了多项式的加减乘除。多项式运算已经在《算法导论》第30章有简要的介绍,具体的请参考数学书。 大整数加法:(利用书上公式轻松得出) //多项式加法-大数加法 #include #include using namespace std; #define m1 4 #define m2 5 //a[0]=x^0 a[1]=x^1....
分类:其他好文   时间:2014-04-29 13:46:21    阅读次数:326
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!