码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
(转)PHP的ereg()与eregi()的不同及相同点。对比
ereg()字符串比对解析。语法:int ereg(string pattern, string string, array [regs]);返回值:整数/数组函数种类:资料处理内容说明本函数以 pattern 的规则来解析比对字符串 string。比对结果返回的值放在数组参数 regs 之中,re...
分类:Web程序   时间:2015-07-11 11:56:05    阅读次数:151
programing Python --Sys module
Recall that every python module has a built_in __name__ variable that python sets to the __main__ string only when the file is run as a program,not wh...
分类:编程语言   时间:2015-07-11 11:49:53    阅读次数:233
初学JDBC,JDBC工具类的简单封装
//工具类不需要被继承public final class JdbcUtils{ //封装数据库连接参数,便于后期更改参数值 private static String url="jdbc:mysql://localhost:3306/jdbc"; private static String ...
分类:数据库   时间:2015-07-11 11:46:00    阅读次数:133
【C++】引用计数器简单示例
//引用计数器 // 封装一个计数器的类来维护,可以隐藏起来,即用户不必关心是如何实现的 #include using namespace std; class String_Rep { friend class String; public: String_Rep(const char *str = " ") :count(0) { m_data = new char[str...
分类:编程语言   时间:2015-07-11 10:43:44    阅读次数:134
Java - 判断元音辅音
随机生成字母, 判断是元音字母还是辅音字母.代码://: Main.javaimport java.util.Random;/** * 判断元音辅音 */ class Main { public static void main(String[] args) { Random rand = new Random(47); for (int i=0; i<...
分类:编程语言   时间:2015-07-11 10:42:33    阅读次数:186
项目中连接数据库,类的封装;
一.首先创建一个类,封装数据库和个人信息:package com.yxq.dao;public class Constants { public static String url ="jdbc:mysql://127.0.0.1:3306/personblog"; public static St...
分类:数据库   时间:2015-07-11 10:29:45    阅读次数:140
leetcode-58-Length of Last Word
Length of Last Word   Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist...
分类:其他好文   时间:2015-07-11 09:13:11    阅读次数:106
spring mvc 批量上传+文件上传
spring mvc 批量上传+文件上传 简单3步走。搞定! 上传文件成功后: 1 上传文件核心方法 public static String saveWebImgFile(MultipartFile imgFile){           String webFilePath = "";           if(imgFi...
分类:编程语言   时间:2015-07-11 09:10:07    阅读次数:249
20 Valid Parentheses
20 Valid Parentheses链接:https://leetcode.com/problems/valid-parentheses/ 问题描述: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The...
分类:其他好文   时间:2015-07-11 09:08:46    阅读次数:103
java 短连接+MD5加密短链接
java 短连接+MD5加密短链接 import java.security.MessageDigest; public class ShotUrlUtil { public static void main(String[] args) { System.out.println(shortUrl("http://www.baidu.co...
分类:编程语言   时间:2015-07-11 09:08:07    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!