C/C++
文章平均质量分 70
iteye_3854
这个作者很懒,什么都没留下…
展开
-
智能指针 - scoped_ptr
由于最近研究的一个项目是用C++开发的, 所以不得不重温一下C++, 自己刚开始工作时候用的就是C++, 好熟悉的感觉. 智能指针——scoped_ptr 是一个简单的智能指针,它能够保证在离开作用域后对象被自动释放。 #include <string> #include <iostream> #include <boost/scoped_ptr.hpp&g...原创 2011-02-11 19:32:14 · 81 阅读 · 0 评论 -
windows下glib使用
http://blog.csdn.net/owe/archive/2007/05/10/1603744.aspx glib是linux下的基础库,封装了一些C接口。当然也跨平台了。 但是在windows下搞了很久才能运行起来。 首先去官方网站下载动态库 http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.12/glib-2.1...原创 2011-02-14 14:16:29 · 1511 阅读 · 1 评论 -
C语言读取文本文件
#include <stdio.h> #include <stdlib.h> char* ReadFile(char *filename) { char *buffer = NULL; int string_size,read_size; FILE *handler = fopen(filename,"r"); if (hand...原创 2012-07-20 14:09:20 · 547 阅读 · 0 评论 -
企业级C++开发不得不提到的跨平台的开源库
ACE http://www.cs.wustl.edu/~schmidt/ACE.html Boost http://www.boost.org/ STLport http://www.stlport.org/原创 2012-03-03 17:31:55 · 148 阅读 · 0 评论