1、服务端建立webservice,增加方法gettime和sum。测试正常8080端口,关闭防火墙。Start启动服务,并且OpenBrowser,XE6真是方便啊http://localhost:8080/wsdl/IsoapTest 保存wsdl文件。2、客户端android使用,只能建立fi...
分类:
移动开发 时间:
2014-08-06 01:38:40
阅读次数:
204
#includeint main(){int m,n,i,j,a,b;scanf("%d\n",&m);while(m--) // m组数据 { int sum=0; scanf("%d\n",&n); // 某一组 n个数 for(i=0;i<n;i+...
分类:
其他好文 时间:
2014-08-06 01:38:30
阅读次数:
177
//求一句话里单词的个数 前面空格后面非空格 计数器加1//she is a good girl ====5个int CountWords(char c[]){ int word=0; int sum=0; char *p=c; for (;*p!='\0';p++) ...
分类:
其他好文 时间:
2014-08-06 01:29:40
阅读次数:
196
其实列转行是比较简单的用sum和decode函数就可以了,但是我遇到的项目,不知道数据谁设计的居然字段里面还设计成long类型,此long类型与java中的不同,oracle中的long是指可变长二进制数据,最长2G,哎没办法只好转换了。以下是hsqldb的转换,用到了转换函数convert,可以将lon..
分类:
数据库 时间:
2014-08-05 22:54:40
阅读次数:
288
//(2^n-1)%mod
//费马小定理:a^n ≡ a^(n%(m-1)) * a^(m-1)≡ a^(n%(m-1)) (mod m)
# include
# include
# include
# define mod 1000000007
using namespace std;
__int64 pow(__int64 n)
{
__int64 p=1,q=2;
w...
分类:
其他好文 时间:
2014-08-05 22:40:30
阅读次数:
242
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] ha...
分类:
其他好文 时间:
2014-08-05 22:37:50
阅读次数:
188
使用向量:#include#includeusing namespace std;int FenShu(int);int main(){ double sum=0,sum1=0; for(int i=2;i a(2,1); a.reserve(3); a.at(0)=1; a.at(1)=...
分类:
其他好文 时间:
2014-08-05 22:29:40
阅读次数:
815
#includeusing namespace std;int YuanZhou(int);int main(){ int n; double temp,sum=0; cout>n; for(int i=1;i<=n;i++) { if(i%2==0) { temp=...
分类:
其他好文 时间:
2014-08-05 22:22:50
阅读次数:
209
Problem Description假设一个班有n(nint main(){ int n,m,i,j,e,count,flag,a[50][5]; double aver[50],sum; //sum 必须为 double型 whil...
分类:
其他好文 时间:
2014-08-05 21:59:40
阅读次数:
226
本文我们介绍MySQL数据库表空间和索引的查看方法,并详细地给出了其代码,接下来我们一一介绍。1.查看索引(1)单位是GB SELECT CONCAT(ROUND(SUM(index_length)/(1024*1024*1024), 2), ' GB') AS 'Tot...
分类:
数据库 时间:
2014-08-05 21:51:30
阅读次数:
294