
每天学习一点点
文章平均质量分 95
kacakaca-gogogo
这个作者很懒,什么都没留下…
展开
-
strerror&gcc -W&__FILE__
1、strerror使用导致的Segmentation fault (core dumped) 2、strerr和strout的区别 3、gcc的-Wall和-W参数 4、__FILE__和__LINE__原创 2017-08-30 23:55:53 · 467 阅读 · 0 评论 -
string与int的相互转换
有4种方法: stringstream atoi/itoa sscanf/sprintf lexical_cast 1.stringstream头文件:#include <sstream>1.1 string to int下面的例子将输入到str中的字符通过string stream类型的变量ss转换为int类型的变量,输入到num中:stringstream ss;s原创 2017-09-16 22:45:31 · 954 阅读 · 0 评论 -
杂杂杂杂杂
在docker中使用gdb,遇到“warning: Error disabling address space randomization: Operation not permitted”solution:need the --security-opt seccomp=unconfined option(docker run --cap-add=SYS_PTRACE --security...原创 2019-08-23 14:12:17 · 721 阅读 · 0 评论