码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C语言中关于字符串的一些常用函数
使用以下时应当在头文件中加入string.h getch()为当你键入任何一个值时,返回但是并不显示,立马编译结束,返回的是asc码 getchar();当你键入回车之后才算是输入结束,并且可以用putchar()显示第一个字符,返回的是asc码 puts()将一个字符串(仅一个)输出到终端,可以包...
分类:编程语言   时间:2015-02-02 19:32:09    阅读次数:163
Java中判断String不为空
1. str!=null; 2. "".equals(str); 3. str.length()!=0;注意: length是属性,一般集合类对象拥有的属性,取得集合的大小。例如:数组.length就是取得数组的长度。 length()是方法,一般字符串类对象有该方法,也是取得字符串长度。例...
分类:编程语言   时间:2015-02-02 19:26:42    阅读次数:182
python中将string转码为ASCII格式
Convert string to ASCII value python:http://stackoverflow.com/questions/8452961/convert-string-to-ascii-value-python https://docs.python.org/2/library/string.html http://www.pythoncentral.io/pytho...
分类:编程语言   时间:2015-02-02 18:21:13    阅读次数:202
tomcat使用指南(三)-配置数据源
为何使用JNDI数据源 如果用java直接连接: Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); String url="jdbc:oracle:thin:@localhost:1521:orcl"; Connection conn= DriverManager.getConnection(url,user,password); 也是可以的,但是这样没有连接池的概念,每次连接都得重新创建,使用完毕必须记得断开,...
分类:其他好文   时间:2015-02-02 18:19:07    阅读次数:167
.NET(C#)连接各类数据库-集锦
1.C#连接连接Access 程序代码: ------------------------------------------------------------------------------- using System.Data; using System.Data.OleDb; .. string strConnection="Provider=Microsoft....
分类:数据库   时间:2015-02-02 18:13:17    阅读次数:115
Struts2之单文件上传
1 界面 String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> "> My JSP 'index.jsp' start...
分类:Web程序   时间:2015-02-02 18:06:59    阅读次数:268
android LayoutInflater.inflate详解
LayoutInflater概述 从XML文件中实例化一个布局成对应的View类, 它从来不会直接使用, 而是使用getLayoutInflater()或者getSystemService(String)来获得一个对应当前context的标准LayoutInflater 实例。 例如:     1 2 3 LayoutInfl...
分类:移动开发   时间:2015-02-02 18:04:55    阅读次数:286
Leetcode#6 ZigZag Conversion
原题地址找规律题代码: 1 string convert(string s, int nRows) { 2 string res; 3 4 if (nRows <= 1) 5 return s; 6 7 ...
分类:其他好文   时间:2015-02-02 17:58:17    阅读次数:163
java时间戳转化
String aa="1422865572"; long nowTime=System.currentTimeMillis(); //当前时间戳//以下为时间戳转化 long retime =Integer.valueOf(aa).intValue(); SimpleDateFor...
分类:编程语言   时间:2015-02-02 17:57:55    阅读次数:201
java和.net 处理任意格式日期字符串转日期类型,
1、SimpleDateFormat.parse 把指定格式字符串转日期类型public static Calendar convToCalender(String str,String template){ SimpleDateFormat sdf; Date date...
分类:编程语言   时间:2015-02-02 17:56:05    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!