码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
js学习20150401(五)
一、js数据类型: 字符串:string 数字:number 布尔:boolean undefined 复合类型:object functiontypeof 出现undefined的两种情况 1、定义了没有赋值 2、typeof a 根本就没有定义 3、函数没有返回值 4、访问一个不存在的属性 5、...
分类:Web程序   时间:2015-04-02 20:34:21    阅读次数:108
迭代法 丢羊了
static void Main(string[] args) { int y = 2; //过一个村庄丢一半零一只,过了7个村庄还是2只,求原来几只 for (int i = 1; i <=7; i++) { y = (y + 1) * 2; } Console.WriteLine(y); Con...
分类:其他好文   时间:2015-04-02 20:33:28    阅读次数:104
Continue 的应用(暂时还不大会运用)
static void Main(string[] args) { while (true) { int i=1; while (i<=100) { Console.WriteLine(i); i++; if (i==50) { Console.WriteLine("sdsa"); } c...
分类:其他好文   时间:2015-04-02 20:33:17    阅读次数:113
hibernate用sql联合查询数据库
@RequestMapping(value?=?"/FeedPager.cqzk") ????@ResponseBody ????public?String?url_sa1(HttpServletRequest?request,?BootPage?page) ????????????throws?ServletException,?I...
分类:数据库   时间:2015-04-02 19:14:33    阅读次数:192
leetcode ||65、 Valid Number
problem: Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem state...
分类:其他好文   时间:2015-04-02 18:52:48    阅读次数:116
volley中网络请求
首先使用Volley类创建 RequestQueue queue = Volley.newRequestQueue(this);Making GET Requests 1 final String url = "http://httpbin.org/get?param1=hello"; 2 3 .....
分类:其他好文   时间:2015-04-02 18:51:07    阅读次数:137
C#基本语法复习-理解值和引用
复制值类型的变量和类: 除了string类型为引用类型外,C#的大多数基本数据类型都是值类型。 值类型复制时,会产生一个副本,对副本的修改不会对原值产生影响,而对于引用类型,对象只有一个是存储在堆上的,复制时只是将其引用进行复制,应用中包含了该对象的一个地址。理解null值和可空类型: 可以将...
分类:Windows程序   时间:2015-04-02 18:50:00    阅读次数:194
leetcode-Valid Palindrome
1 bool isPalindrome(string s) { 2 int start=0, end=s.length()-1; 3 while(start<end) { 4 if (!isalnum(s[start])) start++; 5 el...
分类:其他好文   时间:2015-04-02 18:38:44    阅读次数:125
sed替换
1. sed可以替换给定的文本中的字符串,可以利用正则表达式进行匹配$ sed 's/pattern/replace_string/' file或者$ cat file | sed 's/pattern/replace_string/' file使用-i选项,可以将替换的结果应用于原文件,也可以借助...
分类:其他好文   时间:2015-04-02 18:31:56    阅读次数:128
NPOI导出excel
使用前,导入NPOI dll(测试使用版本:1.2.5.0使用 1 try 2 { 3 string strExcelNamePart ="测试报表"; 4 string strBegin...
分类:其他好文   时间:2015-04-02 18:27:16    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!