码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
code vs1099 字串变化 字符串搜索(STL)
题目链接: http://codevs.cn/problem/1099/ 题解思路: 1.用string 类型来保存字符串 方便插入比较等操作 2.用STL set来判断当前字符串是否出现过 注意字符串的下标 代码: #include #include #include #include #include #include us...
分类:其他好文   时间:2015-06-26 09:23:25    阅读次数:137
java中一些小知识点(面试)
##看别人博客,发现这些题目还是有一定的迷惑性的,因此就在博客中记录下来。 3)下列选项中,哪一项能够正常编译: C A:int i = Integer.valueOf(1.2); 理由:Integer.valueOf(int/String);只有这两种参数 B:char c = "a";不能将字符串类型转化为字符型 C:byte b = 127;...
分类:编程语言   时间:2015-06-26 09:20:24    阅读次数:127
Effective C++ 条款20
宁以pass-by-reference-to-const替换pass-by-value本节,我们一起来探究一下值传递和引用传递之间的区别。 先看一段代码:class Person{ public: Person(); virtual ~Person(); …… private: std::string name; std::string address; }...
分类:编程语言   时间:2015-06-26 09:16:40    阅读次数:110
加载着色器的异常
public static String loadFromAssetsFile(String fname, Resources r) { String result = null; try { InputStream in = r.getAssets().open(fname); int ch = 0; ByteArrayOutputStream baos =...
分类:其他好文   时间:2015-06-26 09:16:30    阅读次数:113
how convert large HEX string to binary array ?
how convert large HEX string to binaryI have a string with 14 characters . This is a hex represantation of 7bytes. I want to convert it to binary.int3...
分类:其他好文   时间:2015-06-26 08:00:31    阅读次数:113
Oracle汉字转拼音package
--函数GetHzFullPY(string)用于获取汉字字符串的拼音--select GetHzFullPY('中华人民共和国') from dual;--返回:ZhongHuaRenMinGongHeGuo--函数GetHzPYCAP(string)用于获取拼音首字母--select GetHz...
分类:数据库   时间:2015-06-26 01:40:28    阅读次数:1735
mysql保存emoji表情(微信开发用户昵称..)
java.sql.SQLException: Incorrect string value: '\xF0\x9F\x92\x94' for colum n 'name' at row 1 at com.mysql.jdbc.SQLError.createSQLException(SQLError.j...
分类:微信   时间:2015-06-26 00:29:14    阅读次数:1251
Date、String、Calendar类型之间的转化
1.Calendar 转化 String//获取当前时间的具体情况,如年,月,日,week,date,分,秒等 Calendar calendat = Calendar.getInstance();SimpleDateFormat sdf = new SimpleDateFormat("yyyy-M...
分类:其他好文   时间:2015-06-26 00:27:24    阅读次数:127
Redis 笔记与总结4 set 和 zset 类型
(一)set 类型set 是集合是 string 类型的无序集合。 set 元素最大可以包含(2 的 32 次方)个元素。set 的是通过 hash table 实现的,所以添加、删除和查找的复杂度都是O(1)。 hash table 会随着添加或者删除自动的调整大小。需要注意的是调整 hash t...
分类:其他好文   时间:2015-06-26 00:27:21    阅读次数:155
[LeetCode] Basic Calculator II 基本计算器之二
Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / operators an...
分类:其他好文   时间:2015-06-26 00:23:20    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!