牛骨文教育服务平台(让学习变的简单)
博客笔记
30
2017-09
C++ 数组或vector最大值最小值 2017-09-30
一) Returns an iterator pointing to the element with the largest value in the range[first,last) [cpp] view plain copy position=max_element(a,a+n)-a;   这样写的话就代表的是
07
2015-08
LUA获取utf8字符串长度 2015-08-07
--- 获取utf8编码字符串正确长度的方法 -- @param str -- @return number function utfstrlen(str) local len = #str; local left = len; local cnt = 0; local arr={0,0xc0,0xe0,0xf0,0xf8,0xfc
08
2015-07
MySQL读取中文乱码的问题。 2015-07-08
首先,我确认机子是配置都是 UTF8 的字符编码。 可以用show variables like "char%" 来查询。 mysql> show variables like "char%";+--------------------------+---------------
16
2016-06
jquery用ajax方式从后台获取json数据后如何将内容填充到下拉列表 2016-06-16
从后台获取json数据,将内容填充到下拉列表,代码非常简单,具体过程请看下面代码。 需求:url:链接     par:ID       sel:下拉列表选择器
08
2013-11
C++开源日志库选择 2013-11-08
每个系统都需要日志记录,通过日志方便排错调试,管理运行时的异常。 而C++开源的日志库,待选的有 glog、log4cplus、log4cpp、log4cxx 目前准备使用gl
26
2016-04
几个php算法练习题 2016-04-26
1. 有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 2.有5个人偷了一堆苹果,准备在第二天分赃。晚上,有一人遛
08
2017-01
error: declaration of ‘a’ as multidimensional array must have bounds for all dimensions except ... 2017-01-08
error: declaration of ‘a’ as multidimensional array must have bounds for all dimensions except the first| 数组定义要明确长度 阅读更多

			
				MySql使用if语句例子
MySql使用if语句例子 2017-05-16
工作中同事提的一个问题: 有一张用户表,表里面三个字段,分别是用户ID,用户姓名,和用户薪水,表里面有100万条数据,如何用一句SQL查询出 薪水小于10
12
2016-08
lua 含中文的字符串处理--分离字符、计算字符数、截取指定长度 2016-08-12
lua中对中文字符串的一些处理 分离字符 将每个字符分离出来,放到table中,一个单元内一个字符 function StringToTable(s) local tb = {} --[[ UTF
14
2018-03
python positional argument follows keyword argument 2018-03-14
当参数的位置不正确时,就会报上面的错误;关键字参数必须跟随在位置参数后面! 因为python函数在解析参数时, 是按照顺序来的, 位置参数是必须先