码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
动态数组使用
import java.util.*; import java.io.*; public class 动态数组使用 { /** * @param args */ public static void main(String[] args) { Scanner in=new Scanner(new BufferedInputStream(System.in)); while(...
分类:编程语言   时间:2015-02-24 12:37:21    阅读次数:182
LeetCode 171. Excel Sheet Column Number
相似题型:LeetCode 168. Excel Sheet Column Title 代码: class Solution { public: int titleToNumber(string s) { int ret = 0; for (size_t i = 0; i < s.size(); ++ i) {...
分类:其他好文   时间:2015-02-24 11:27:53    阅读次数:142
LeetCode 168. Excel Sheet Column Title
相似题型:LeetCode 171. Excel Sheet Column Number 代码: class Solution { public: string convertToTitle(int n) { string ret; while (n != 0) { ret.insert(ret.begin(), 'A' + (n-1)%26); n = (n-1) / 26; }...
分类:其他好文   时间:2015-02-24 11:26:53    阅读次数:123
辛星浅析Redis中的字符串类型
字符串类型是Redis中最为基础的数据存储类型,它在Redis中是二进制安全的,这就意味着该类型可以接受任何格式的数据,比如图像数据或者json对象等信息,在Redis中字符串类型的value最多可以容纳的数据长度为512M。       我们常用的命令如下:      (1)append  key   value   如果该key已经存在,那么append命令会将参数value的值追加到已经...
分类:其他好文   时间:2015-02-24 11:25:35    阅读次数:145
常用的连接字符串(vs中连接sqlserver)方便随时查看
Sql Server身份验证有两种,一种是Windows身份验证,还有一种是Sql Server 身份验证Windows身份验证连接字符串: string connectionString = "Data Source=localhost;database=数据库名称;...
分类:数据库   时间:2015-02-24 11:24:02    阅读次数:158
【转】File类应用 - FilenameFilter 和 FileFilter
FilenameFilter和FileFilter都是用来过滤文件,例如过滤,以.jpg或者.java结尾的文件,通过看他们的源码:通过使用File类中String[] list(FilenameFilterfilter)或者public File[] listFiles(FileFilterfil...
分类:其他好文   时间:2015-02-23 22:23:38    阅读次数:219
getline()函数详解--转自黄昏飘雪的那夏
本文转自黄昏飘雪的那夏,原作者www.cnblogs.com/overcode学习C++的同学可能都会遇到一个getline()函数,譬如在C++premer中,标准string类型第二小节就是“用getline读取整行文本”。书上给的程序如下:int main(){ string line: .....
分类:其他好文   时间:2015-02-23 22:21:59    阅读次数:162
LeetCode Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without ...
分类:其他好文   时间:2015-02-23 21:15:50    阅读次数:214
haode
public class Test{ public String excute(){ return a; } } 2015-02-23
分类:其他好文   时间:2015-02-23 19:02:19    阅读次数:132
Javascript 内置值、typeof运算符、true/false判断
一、内置值 true false null undefined NaN Infinity二、typeof运算结果 number string boolean undefined function object (array、)三、true/fa...
分类:编程语言   时间:2015-02-23 18:58:05    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!