![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
yaoguangle
这个作者很懒,什么都没留下…
展开
-
恢复eclipse中删除的文件或恢复修改的文件内容
1.恢复eclipse中删除的文件选择项目,点击右键,选择Restore from Local History 2.恢复修改的文件内容选择文件,点击右键,选择Local History原创 2009-09-23 15:25:00 · 651 阅读 · 0 评论 -
浅拷贝与深拷贝
#include "stdafx.h"#include using namespace std;class Test{public: Test(){ a = new(int) ; *a = 1; }; ~Test() {delete a;} void print(){ cout << "a address = " << a << endl; co原创 2010-03-04 14:09:00 · 323 阅读 · 0 评论 -
vc2008预编译头文件出错的问题
提示错误:skipped when looking for precompiled header use 解决方法:1. project -> xxxProperty -> C/C++ -> Precompiled Headers -> Create/use Precompiled Header中选择Not using Precompiled Headers。2. 将需要的头文件写入std原创 2010-01-07 14:35:00 · 823 阅读 · 0 评论 -
vc6.0对dynamic_cast的支持
工程->设置->C/C++->分类->C++语言选中允许RTTI。 不选择RTTI的话,编译会出现下面警告。运行也有问题warning C4541: dynamic_cast used on polymorphic type class xxxx with /GR-; unpredictable behavior may resultLinking...原创 2010-01-12 10:44:00 · 617 阅读 · 0 评论