码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
将多级目录打包成zip文件
最近接触PHP,需要用到zip压缩,在网上搜索的一大堆,发现代码都不低于50行。 而且调用还很费事(基础太少看不懂)。让我收获的是Php提供有一个ZipArchive类,并有如下方法。 bool addEmptyDir ( string $dirname ) bool addFile ( string $filename [, string $loca...
分类:其他好文   时间:2014-12-14 22:43:27    阅读次数:215
groovy regex groups(groovy正则表达式组)
先看一个java正则表达式的例子.import java.util.regex.Matcher;import java.util.regex.Pattern;public class TestMatch { public static void main(String[] args) { ...
分类:其他好文   时间:2014-12-14 22:36:58    阅读次数:157
struts2接收参数的几种形式
1、使用属性HTML: 用户名: 密 码: action:public class TestAction extends ActionSupport{ private String username; private String passw...
分类:其他好文   时间:2014-12-14 22:35:36    阅读次数:191
PHP String 函数
PHP String 简介String 字符串函数允许您对字符串进行操作。安装String 函数是 PHP 核心的组成部分。无需安装即可使用这些函数。PHP String 函数PHP:指示支持该函数的最早的 PHP 版本。函数描述PHPaddcslashes()在指定的字符前添加反斜杠。4addsl...
分类:Web程序   时间:2014-12-14 22:27:59    阅读次数:507
java中字符串String 转 int(转)
java中字符串String 转 int String -> int s="12345"; int i; 第一种方法:i=Integer.parseInt(s); 第二种方法:i=Integer.valueOf(s).intValue(); 这两种方法有什么区别呢?作用是不是一样的呢...
分类:编程语言   时间:2014-12-14 22:27:24    阅读次数:195
android 适配器的简易笔记
(一)、使用ArrayAdapter做适配器: 常用在:Spinner ①设置数据源 ②使用ArrayAdapter做适配器,使用方法同Spinner ③ 给ListView对象设置适配器 String[] arrayData = { "网络设置", "wifi设置", "蓝牙设置", ...
分类:移动开发   时间:2014-12-14 21:25:15    阅读次数:337
2.结构篇
1.含义:结构(struct)是使用 struct关键字定义的,与类相似,都表示可以包含数据成员和函数成员的数据结构。2.申明public struct Student{ public string name; //定义结构时的数据字段是不能赋初始值的 public int age; publi.....
分类:其他好文   时间:2014-12-14 21:16:10    阅读次数:190
poj1961 Period
DescriptionFor each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whe...
分类:其他好文   时间:2014-12-14 21:15:07    阅读次数:164
2014.12.13 ASP.NET文件上传
一、文件上传:(一)上传到硬盘文件夹1.最简单的上传。[HTML代码]1 2 [C#代码]1 //把相对路径,变成绝对路径2 string path = Server.MapPath("uploads/aaa.txt");3 //文件上传,注意的是:SaveAs里面的应当是绝对路径4 FileUpl...
分类:Web程序   时间:2014-12-14 21:14:59    阅读次数:189
循环、跳转、异常语句,string类、math、datetime
1、循环语句(1)For(2)While(3)Do…while…(4)Foreach(1)for(初始条件;比较;状态改变){循环体;}(2)inti=0;//初始条件While(i<=9){循环体;I++;//状态改变}(3)inti=0;Do{I++;循环体;}while(i<0);注意:do…...
分类:其他好文   时间:2014-12-14 21:13:37    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!