码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
【c++】简单的string类的几个基本函数
// string的几个基本函数的实现 #include #include #include using namespace std; class String { public: String() { _str = new char[1]; _str[0] = '\0'; } String(char *str) { assert(str != NULL); _...
分类:编程语言   时间:2015-07-11 15:10:37    阅读次数:151
【Ajax】脑补一下 ajax 的options
问题是因为粉红色部分引起的 ,想搞明白 put delete 的应用场景,发现ajax的一些属性也没有完全用过。参数名类型描述url String(默认: 当前页地址) 发送请求的地址。typeString(默认: "GET") 请求方式 ("POST" 或 "GET"), 默认为 "GET"。注意...
分类:Web程序   时间:2015-07-11 15:04:11    阅读次数:107
分享非常有用的Java程序 (关键代码) (三)---创建ZIP和JAR文件
原文: 分享非常有用的Java程序 (关键代码) (三)---创建ZIP和JAR文件 import java.util.zip.*; import java.io.*; public class ZipIt { public static void main(String args[]) throw...
分类:编程语言   时间:2015-07-11 15:01:49    阅读次数:147
分享非常有用的Java程序 (关键代码) (二)---列出文件和目录
原文: 分享非常有用的Java程序 (关键代码) (二)---列出文件和目录 File dir = new File("directoryName"); String[] children = dir.list(); if (children == null) { // Either dir do....
分类:编程语言   时间:2015-07-11 15:01:03    阅读次数:127
分享非常有用的Java程序 (关键代码) (一)
原文: 分享非常有用的Java程序 (关键代码) (一) 分享一些非常有用的Java程序 (关键代码) ,希望对你有所帮助。 1. 得到当前方法的名字 String methodName = Thread.currentThread().getStackTrace()[1].getMethodNam...
分类:编程语言   时间:2015-07-11 14:59:06    阅读次数:124
[LeetCode][Java] Substring with Concatenation of All Words
题目: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in wordsexactly o...
分类:编程语言   时间:2015-07-11 13:43:48    阅读次数:148
freemarker错误九
1、错误叙述性说明五月 30, 2014 11:52:04 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error严重: Template processing error: "Can't convert the date to string, ...
分类:其他好文   时间:2015-07-11 13:31:10    阅读次数:111
POJ-1007
#include #include #include using namespace std; int inversionCompute(string str){ int inversionSum=0; char *cp=(char*)str.data(); for(int i=0;i<str.length()-1;i++){ for(int j=i;j<str.length()-1;...
分类:其他好文   时间:2015-07-11 12:10:23    阅读次数:105
初学JDBC,防SQL注入简单示例
在JDBC简单封装的基础上实现public class UserDao{ public static void testGetUser(String userName) throws Exception{ Connection conn=null; PreparedStatement ...
分类:数据库   时间:2015-07-11 11:59:30    阅读次数:152
SWIFT中正则表达式验证邮箱
在playground内写入以下代码,正则关键字跟其它语言的没什么区别class Regex { let internalExpression:NSRegularExpression let pattern:String init(pattern:String) { ...
分类:编程语言   时间:2015-07-11 11:54:12    阅读次数:393
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!