C
iteye_5216
这个作者很懒,什么都没留下…
展开
-
Carbide C 安装后不能编译
Carbide C++ 2.3 错误信息 bldmake returned with exit value = 255 解决方法,安装了oracle10g,环境变量里有个perl5lib指向oracle下的perl5.8 删除该变量即可2010-04-22 21:18:02 · 82 阅读 · 0 评论 -
错误:`std::ios_base::ios_base(const std::ios_base&)' is private
用std::ifstream,std::ofstream作为函数参数传递时,必须通过引用传递,因为其copy方法被私有化,从而保证对象的唯一性。 正确 [code="c++"]void LineRead::read(std::ifstream *fin) { std::string line; while(getline(*fin,line)) { ...原创 2010-06-09 08:49:50 · 464 阅读 · 0 评论 -
创建一个dll文件,并调用
我用的是code:blocks 1 创建一个动态链接库工程 main.h [code="c++"] #ifndef __MAIN_H__ #define __MAIN_H__ #include #include /* To use this exported function of dll, include this header * in your project...2010-06-09 21:14:18 · 189 阅读 · 0 评论 -
C++指针容易出现的小错误
一、定义 class C { public: std::string name; }; //正确,用指针指向一个对象 C *cc=new C(); cc->name="ddd"; std::cout原创 2010-06-12 16:22:11 · 293 阅读 · 0 评论