鱼儿慢慢游~~

导航

 

2016年5月13日

摘要: 在c++中,一下几种情况会产生临时对象: 1. 按值进行函数参数传递时 2. 函数返回对象时 3. 发生类型转化时。 c++中产生的临时对象是不可修改的,及默认为const的 非常量引用产生临时对象: 这里upper 函数的操作是将str转换为大写,而在进行了上面代码的调用时,发生了类型转化,产生临 阅读全文
posted @ 2016-05-13 17:10 miss_UU 阅读(377) 评论(0) 推荐(0) 编辑
 
摘要: 1 #!/bin/sh 2 # 3 # chkconfig: - 39 35 4 # description: start and stops redis server 5 # programname: redis 6 7 # Source function library. 8 if [ -f /etc/init.d/functions ] ; then ... 阅读全文
posted @ 2016-05-13 15:46 miss_UU 阅读(303) 评论(0) 推荐(0) 编辑