PS:边界条件判断不需要计算,用来比较判断就可以了。哎呀,自己还是太嫩啊,老是忘了比较这一招!!!!代码: 1 #include 2 #include 3 4 using namespace std; 5 6 string convert(string s, int nRows) 7 { 8 ...
分类:
其他好文 时间:
2015-03-08 00:06:12
阅读次数:
140
B线程运行中调用a.join()后,意味着B线程加入到a线程尾部,即先执行a线程,后执行B线程。package com.test;public class B extends Thread {public static void main(String[] args) throws Exceptio...
分类:
编程语言 时间:
2015-03-07 23:59:15
阅读次数:
423
get 方法实例: String url="http://202.194.14.215/iactivity/mobile/msg.php?act=1"; String tixingfanhuizhi=null; DefaultHttpClient client=new Defau...
分类:
其他好文 时间:
2015-03-07 23:55:50
阅读次数:
173
//上传ftpmg.Upload("", DateTime.Now.ToString("yyyyMMddhhmmss"));//下载ftpmg.Download(@"E:\", "tt.txt", out errorinfo); 1 string ftpServerIP; 2 ...
分类:
Web程序 时间:
2015-03-07 22:43:17
阅读次数:
261
首先准备一个JSON格式的字符串 * String JsonStr = "{object:{persons:" + "[{name:'呵呵',image:'http://10.0.159.132:8080/Web/s1.png'}," + "{name:'哈哈',image:'http...
分类:
编程语言 时间:
2015-03-07 21:17:11
阅读次数:
175
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".[Solution] 1 string addBinary(string a, string ...
分类:
其他好文 时间:
2015-03-07 18:36:26
阅读次数:
107
Title:Linux C 调用MYSQL API 函数mysql_escape_string()转义插入数据 --2013-10-11 11:57#include #include #include #include "mysql.h" int main(int argc, char *argv....
分类:
数据库 时间:
2015-03-07 18:34:14
阅读次数:
2629
转自:http://blog.csdn.net/xuewater/article/details/25687987在资源文件中写字符串时,如果这个字符串时动态的,又不确定的值在里面,我们就可以用xliff:g这个标签,但是我写的资源文件一直有错误,如:Initial format: %1$s错误提示...
分类:
移动开发 时间:
2015-03-07 18:32:38
阅读次数:
163
public static void main(String args[]) { int i=10,j=10; outer: while (i > 0) { inner: while (j > 0) { ...
分类:
编程语言 时间:
2015-03-07 18:28:16
阅读次数:
153
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2015-03-07 18:27:06
阅读次数:
170