摘要: 下 面 的 代 码 int i=7; printf("%d\n", i++ * i++); 返回 49?不管按什么顺序计算, 难道不该打印出56吗?尽管后缀自加和后缀自减操作符 ++ 和 -- 在输出其旧值之后才会执行运算,但这里的“之后”常常被误解。没有任何保证确保自增或自减会在输出变量原值之后和... 阅读全文
posted @ 2015-05-13 11:07 chencesc 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 截图: 打印: 全屏截图 alt+打印:窗口截图 shift+打印:区域截图 ctrl+打印:截图到剪贴板显示桌面: ctrl+super+d最大化最小化窗口 ctrl+alt+up/down转到字符终端 ctrl+alt+f1 alt+f7回来 阅读全文
posted @ 2015-04-23 09:35 chencesc 阅读(169) 评论(0) 推荐(0) 编辑
摘要: sudo aptitude install user-mode-linux 阅读全文
posted @ 2015-04-23 08:46 chencesc 阅读(255) 评论(0) 推荐(0) 编辑
摘要: (1) stack::emptybool empty ( ) const;判断是否为空。return Value : true if the container size is 0, false otherwise;(2) stack::popvoid pop ( );在栈的顶部移除元素。(3) s... 阅读全文
posted @ 2015-03-18 10:22 chencesc 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 一、ubuntu下mysql的安装: 通过sudo apt-get install mysql-server 完成; 然后可以通过/etc/init.d/mysql 进行start/stop/restart 操作; 设置mysql自启动:把启动命令加入/etc/rc.local文件中; 二、... 阅读全文
posted @ 2015-03-03 12:36 chencesc 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #include void move (int num, char f, char t){ printf("%d : %c -> %c\n", num, f, t);}void hanoi(int num, char one, char two, char three){ if(num ... 阅读全文
posted @ 2015-02-12 12:51 chencesc 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include char my_getch(){ int c=0; struct termios org_opts, new_opts; int res=0; ... 阅读全文
posted @ 2015-02-12 12:44 chencesc 阅读(388) 评论(0) 推荐(0) 编辑
摘要: deb http://archive.ubuntu.com/ubuntu/ vivid main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ vivid-security main restricted un 阅读全文
posted @ 2015-02-12 12:35 chencesc 阅读(133) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/namecyf/article/details/7787479 vim配置及插件http://www.zhihu.com/question/35465970 知乎set nu " 显示行号syntax on " 语法高亮"set background=da... 阅读全文
posted @ 2015-02-12 11:02 chencesc 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1.map是一类关联式容器,它是模板类。关联的本质在于元素的值与某个特定的键相关联,而并非通过元素在数组中的位置类获取。它的特点是增加和删除节点对迭代器的影响很小,除了操作节点,对其他的节点都没有什么影响。对于迭代器来说,不可以修改键值,只能修改其对应的实值。2.map 的定义使用map得包含map... 阅读全文
posted @ 2015-02-12 10:46 chencesc 阅读(795) 评论(0) 推荐(0) 编辑