码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
DataTable得到某行某列的值
DataTable dt=this.GetRepeatTableData("repeating1");int count=dt.Rows.Count;for(int x=0;x<count;x++){string Personnes=dt.Rows[x][0].ToString();//第一行第一....
分类:其他好文   时间:2015-02-16 16:46:07    阅读次数:122
acm2008
/**  * 数值统计  * 统计给定的n个数中,负数、零和正数的个数  * 如果n=0,则表示输入结束,该行不做处理  */ import java.util.*; public class acm2008 { public static void main(String[] args) { Scanner in=new Scanner(System.in); whil...
分类:其他好文   时间:2015-02-16 15:38:08    阅读次数:117
[LeetCode] Distinct Subsequences 不同的子序列
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:其他好文   时间:2015-02-16 15:32:54    阅读次数:133
C++11的for循环新特性
在C++11中,for有了类似Java语言中的简化循环,可以用于遍历数组,容器,string等等。比如用法如下...
分类:编程语言   时间:2015-02-16 14:20:32    阅读次数:187
fastjson 之常见的数据类型与json的相互转换
public class FastJsonTest1 { /** * 数组转json格式字符串 */ public void array2Json(){ String[] arr = {"bill","green","maks","ji...
分类:Web程序   时间:2015-02-16 14:16:14    阅读次数:157
String to Integer
这里面主要是考虑边界情况: input " 1234" output 1234 input "+1234% *" output 1234 input "-1234.4" output -1234 input "%@!1234" output 0 input "21474...
分类:其他好文   时间:2015-02-16 14:16:04    阅读次数:142
理解class.forName()
原文地址:http://yanwushu.sinaapp.com/class_forname/使用jdbc方式链接数据库时会常常看到这句代码:Class.forName(String className)。本文将浅显地解读这句代码的含义。看这篇文章之前应该对java的反射机制有所了解,至少是对...
分类:其他好文   时间:2015-02-16 14:14:50    阅读次数:115
Delphi or INNO 版本号比较方法 版本差
{替换字符串}function StringReplace(const S, OldPattern, NewPattern: string): string;var SearchStr, Patt, NewStr: string; Offset: Integer;begin SearchStr...
分类:Windows程序   时间:2015-02-16 12:57:36    阅读次数:208
Java中StringBuilder的清空方法比較
StringBuilder 没有提供clear或empty方法。清空有3种方法:1)新生成一个,旧的由系统自己主动回收2)使用delete3)使用setLength将三种方法循环1000万次,代码:1.public class sbbm {2.3. static String a;4. static...
分类:编程语言   时间:2015-02-16 12:53:39    阅读次数:149
常用PHP变量输出:echo, prinf, sprintf, var_dump
1、使用 echo 语句 使用 echo 可以打印变量和内容,其他可以是系统变量,也可以是HTML代码,也可以是一个PHP表达式,如下示例: $a = "12345"; // 变量赋值 $b = "this is string"; // 下面分别打印显示两个变...
分类:Web程序   时间:2015-02-16 11:40:18    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!