会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
anjsxz
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
14
下一页
2014年6月4日
set a breakpoint in malloc_error_break to debug
摘要: 增加一个“符号断点”来定位错误malloc_error_break
阅读全文
posted @ 2014-06-04 09:42 anjsxz
阅读(821)
评论(0)
推荐(0)
2014年6月2日
总结
摘要: std::accumulate(results.begin(),results.end(),init);看别人代码时,有源吗直接看源吧,了解的更直接些。比如下面就是accumulate源码template inline_LIBCPP_INLINE_VISIBILITY_Tpaccumulate(_InputIterator __first, _InputIterator __last, _Tp _...
阅读全文
posted @ 2014-06-02 20:14 anjsxz
阅读(168)
评论(0)
推荐(0)
2014年6月1日
DEBUG LOG
摘要: #ifdef DEBUG#define DLog(...) NSLog(__VA_ARGS__)#else#define DLog(...) /* */#endif
阅读全文
posted @ 2014-06-01 12:44 anjsxz
阅读(133)
评论(0)
推荐(0)
2014年5月30日
sqlite
摘要: SQLite 支持三种线程模式:1. 单线程模式 这种模式下,没有进行互斥,多线程使用不安全2. 多线程模式 这种模式下,在多线程中使用单个数据库连接是不安全的,否则就是安全的。(译注:即不能在多个线程中共享数据库连接)3. 串行模式 这种模式下,sqlite是线程安全的。(译注:即使在多个线程中不...
阅读全文
posted @ 2014-05-30 23:17 anjsxz
阅读(293)
评论(0)
推荐(0)
2014年5月23日
c++primer
摘要: http://en.cppreference.com/w/cpp/io/clogclog绑定到标准错误的 ostream 对象。默认情况下,写到 clog 时是带缓冲 的。通常用于将程序执行信息写入到日志文件中C++ 中,把负值赋给 unsigned 对象是完全合法的,其结果是 该负数对该类型的取值个数求模后的值L’a’ 宽字符字面值与其他变量不同,除非特别说明,在全局作用域声明的 cons...
阅读全文
posted @ 2014-05-23 06:05 anjsxz
阅读(157)
评论(0)
推荐(0)
2014年5月21日
c++ std find_last_of
摘要: find_last_of 找不到值时 返回很大的数,
阅读全文
posted @ 2014-05-21 16:21 anjsxz
阅读(414)
评论(0)
推荐(0)
c语言
摘要: lint /splint---------------------------------------------------------------------------------左值表示存存储在计算机内存中的对象NUL 结束一个ACSII字符串NULL表示什么也不指向------------------------------------------------------------...
阅读全文
posted @ 2014-05-21 06:44 anjsxz
阅读(214)
评论(0)
推荐(0)
2014年5月17日
boost serialization
摘要: -lboost_serializationhttps://www.ibm.com/developerworks/cn/aix/library/au-boostserialization/#include #include #include #include 无需额外编码,就可以将C++编程语言中的很多元素序列化。类、类指针、数组和 Standard Template Library (...
阅读全文
posted @ 2014-05-17 08:54 anjsxz
阅读(316)
评论(0)
推荐(0)
2014年5月16日
ssh autologin
摘要: scp ~/.ssh/id_rsa.pub username@xxx.xx:~/.ssh/authorized_keys
阅读全文
posted @ 2014-05-16 23:08 anjsxz
阅读(137)
评论(0)
推荐(0)
c/c++文件相关
摘要: 取的文件大小1.int fd = open("data.txt",O_RDONLY); int len = lseek(fd,0,SEEK_END);2.structstatsb; if ((fstat(fd, &sb)) == -1) { perror("fstat"); }sb.st_size3...
阅读全文
posted @ 2014-05-16 20:16 anjsxz
阅读(134)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
14
下一页
公告