入门客AI创业平台(我带你入门,你带我飞行)
博客笔记
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| 数组定义要明确长度 阅读更多
26
2016-04
几个php算法练习题 2016-04-26
1. 有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 2.有5个人偷了一堆苹果,准备在第二天分赃。晚上,有一人遛
08
2013-11
C++开源日志库选择 2013-11-08
每个系统都需要日志记录,通过日志方便排错调试,管理运行时的异常。 而C++开源的日志库,待选的有 glog、log4cplus、log4cpp、log4cxx 目前准备使用gl
16
2016-06
jquery用ajax方式从后台获取json数据后如何将内容填充到下拉列表 2016-06-16
从后台获取json数据,将内容填充到下拉列表,代码非常简单,具体过程请看下面代码。 需求:url:链接     par:ID       sel:下拉列表选择器
08
2015-07
MySQL读取中文乱码的问题。 2015-07-08
首先,我确认机子是配置都是 UTF8 的字符编码。 可以用show variables like "char%" 来查询。 mysql> show variables like "char%";+--------------------------+---------------
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
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;   这样写的话就代表的是
11
2015-12
字典排序:函数方法报错,lambda,type与isinstance的区别,==与is 2015-12-11
sorted() 参数中,缺少“key=”和“reverse=”,会出现报错:SyntaxError: positional argument follows keyword argument mdict3 = sorted(mdict1.items(), key=lambda x:x[0], reverse=Fa
14
2015-07
mysql count(),sum()等作为条件查询 2015-07-14
在开发时,我们经常会遇到以“累计(count)”或是“累加(sum)”为条件的查询。比如user_num表: id user num 1 a 3 2 a 4 3 b 5 4 b
29
2014-09
strlen与sizeof计算char* 与char数组 2014-09-29
sizeof()可以计算所有类型,strlen()仅计算字符串,至于这二者的详细区别可以看其他文章。 char *a; char b[5]; sizeof(a) = 8 ;        // 64位系统,8代表