码迷,mamicode.com
首页 >  
搜索关键字:result    ( 10204个结果
c++ template怎么使用及注意事项
c++ 中的template和c#的什么有点相似?先看下定义方式:template T myFunction(T param1,T param2...){ T result= param1; // do something return result; ...
分类:编程语言   时间:2014-05-14 03:05:27    阅读次数:332
sqlite 二进制字段 (zz)
有时我们用数据库存储文件,需要用到二进制字段,下面列常用方法。 1.写二进制数据 sqlite3 * db; int result; char **errmsg =NULL; result = sqlite3_open("test.db", &db ); if( result != SQLITE_O...
分类:数据库   时间:2014-05-14 02:45:00    阅读次数:371
杭电2001
#include #include #include using namespace std;int main(){ double x1,y1,x2,y2; double result; while (cin>>x1>>y1>>x2>>y2) { result ...
分类:其他好文   时间:2014-05-14 02:02:49    阅读次数:242
python中的单元测试
python中的单元测试可以使用doctest,unittest完成 1.doctest的使用 (1)写入程序如下(cubetest.py): #!/usr/bin/python def cube(x): """ cube a number and return the result >>> cube(2) 8 >>> cube(3) 27 >>> cube(4) 64...
分类:编程语言   时间:2014-05-13 23:33:19    阅读次数:491
linux根据进程名查询是否正在运行
查询当前运行进程中是否有指定进程有多种方式,下面介绍一种通过进程名获取进程号,以此来确认该进程是否在运行。 如下实例,查询当前运行进程中是否有test进程在运行。 char buf[200]={0}; system("ps -A | awk '/test/{print $1}'>result"); FILE *fd; fd=popen...
分类:系统相关   时间:2014-05-13 08:02:55    阅读次数:409
Android asynctask使用
继承asynctask,有三个参数 三个参数的含义是第一个表示输入参数,第二个为progress,表示当前的进度,第三个为doInbackground    返回值 需要一个参数传入url,返回一个result结果,如果没有网络则返回空 import java.io.InputStream; import java.util.ArrayList; import java.util.Li...
分类:移动开发   时间:2014-05-13 07:47:33    阅读次数:406
USACO dualpal
/* ID:kevin_s1 PROG:dualpal LANG:C++ */ #include #include #include #include #include using namespace std; int N,S; vector result; bool isPalindromic(string num){ bool flag = true; int len =...
分类:其他好文   时间:2014-05-13 06:10:09    阅读次数:312
【Javascript】JS常用方法扩展
1、格式化字符串操作String.prototype.format = function(args) { if (arguments.length>0) { var result = this; if (arguments.length == 1 && typeof (args) == "objec...
分类:编程语言   时间:2014-05-12 04:17:43    阅读次数:314
Struts2 Problem Report: No result defined for action ... and result exception
每当Struts2爆出这样的异常,会很郁闷,原因太多了,只能一一的检查。有的说input页面没指定,有的说namespace有问题,有的说你对应的result有问题,有的说validate不通过,等等。但是在这里,我却不是,我无论如何都找不到原因,差不多花了两个钟,我无意中使用Struts2异常处..
分类:其他好文   时间:2014-05-10 09:04:19    阅读次数:448
bzoj 2434: [Noi2011]阿狸的打字机
/************************************************************** Problem: 2434 User: wangyucheng Language: C++ Result: Accepted Time:496...
分类:其他好文   时间:2014-05-10 03:06:57    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!