摘要: 1、C++中的using:http://blog.sina.com.cn/s/blog_61e904fd0100nuk3.html 使用using恢复、改变被继承类中的访问权限 2、野指针,没有指向的指针,与空指针的不同 3、函数指针:int (*func)(int); 指针函数:int * fun(int); 4、static_cast和reinterpret_cast的区别:共同点返回... 阅读全文
posted @ 2014-03-09 15:08 yexuannan 阅读(235) 评论(0) 推荐(0) 编辑
摘要: std::fill 在[first, last)范围内填充值:std::fill(v.begin(), v.end(), 100);http://blog.csdn.net/ilysony/article/details/6528664 #include #include #include int main(){ std::vector v; v.resize(10); std::fill(... 阅读全文
posted @ 2014-03-09 09:40 yexuannan 阅读(345) 评论(0) 推荐(0) 编辑