码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
得到属性文件信息
/** * 得到属性文件信息 * * @param key * @return */ public static String getPropertiesByKey(String key) { InputStream in=null; ...
分类:其他好文   时间:2014-06-11 11:38:39    阅读次数:215
日期方法大全
/** * 得到当前的时间 字符串型 */ public static String getNowTime(){ Date time=new Date(); DateFormat format =new SimpleDateFo...
分类:其他好文   时间:2014-06-11 11:32:08    阅读次数:247
发送短信
//get 发送短信 public static String send_sms(String mobile_phone, String msg) { String ret_str = ""; BufferedReader rd=null; try {...
分类:其他好文   时间:2014-06-11 11:31:29    阅读次数:216
查询短信的短信剩余条数
/** * 查询短信的短信剩余条数 * @return */ public static String getSmsCount() { String ret_str = ""; BufferedReader rd=null; t...
分类:其他好文   时间:2014-06-11 11:24:42    阅读次数:359
将字符串数组转换成整形数组
/// /// 将字符串数组转换成整形数组 /// /// /// protected static int[] ToIntArray(string[] Content) { int[] c = new int[Content.Length...
分类:其他好文   时间:2014-06-11 11:13:15    阅读次数:179
获取客户端IP
/*** * 获取客户端IP * @param request * @return */ public static String getIpAddrByRequest(HttpServletRequest request) { String ip...
分类:其他好文   时间:2014-06-11 11:11:05    阅读次数:173
数据集的使用
DataSet ds=new DataSet();//创建数据集--就是数据库,在内存中 string sql="select * from studnet"; string connStr="Data Source=.;Initial Catalo...
分类:其他好文   时间:2014-06-11 10:55:17    阅读次数:881
sizeof string
char a[] = "hello";string s = "hello";cout<<sizeof(a)<<endl;cout<<sizeof(s)<<endl;cout<<sizeof(s.c_str())<<endl; 输出为6324最后一个c_str返回的是char*,所有指针的长度都为4....
分类:其他好文   时间:2014-06-11 10:31:16    阅读次数:234
FastReport调用Delphi中的人民币大写转换自定义函数
FastReport调用Delphi中的人民币大写转换自定义函数FastReport调用Delphi中的人民币大写转换自定义函数function TJzpzEdit1.MoneyCn(mmje: Double): string;consts1: string = ‘零壹贰叁肆伍陆柒捌玖’;s2: s...
分类:其他好文   时间:2014-06-11 10:09:52    阅读次数:189
UITableView中的dequeueReusableCellWithIdentifier的方法
在使用UITableView控件的时候,datasource的代理方法经常会使用到下面的方法来加载UITableView的数据显示- (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexP...
分类:其他好文   时间:2014-06-11 09:52:57    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!