c++
文章平均质量分 55
rubyzhudragon
这个作者很懒,什么都没留下…
展开
-
libtool编译
o: 编译的目标文件a: 静态库,其实就是把若干o文件打了个包so: 动态链接库(共享库)lo: 使用libtool编译出的目标文件,其实就是在o文件中添加了一些信息la: 使用libtool编译出的库文件,其实是个文本文件,记录同名动态库和静态库的相关信息补充:libtool1 libtool的工作原理 libtool 是一个通用库支持脚本,将使用动态库的复杂性隐藏在统原创 2009-08-24 11:37:00 · 1934 阅读 · 0 评论 -
管道(Pipe)/createPipe
BOOL CreatePipe(PHANDLE hReadPipe, // 指向读句柄的指针 PHANDLE hWritePipe, // 指向写句柄的指针 LPSECURITY_ATTRIBUTES lpPipeAttributes, // 指向安全属性的指针 DWORD nSize // 管道大小);管道(Pipe)实际是用于进程间通信的一段共享内存,创建管道的进程称为管道服务器,连原创 2009-07-12 11:10:00 · 9832 阅读 · 4 评论 -
c++ 头文件
C、传统 C++ #include //设定插入点 #include //字符处理 #include //定义错误码 #include //浮点数处理 #include //文件输入/输出 #include //参数化输入/输出 #include //数据流输入/输出 #include //定义各种数据类型最值常量 #include //定义本地转载 2009-07-10 16:02:00 · 642 阅读 · 0 评论 -
STL--list
list::iterator FindIterator,newEnd;FindIterator = find(cList.begin(), cList.end(), c); if (FindIterator == cList.end()){ printf("not find the char c!");}else{ printf("%c", * FindIterator)原创 2009-07-08 18:42:00 · 435 阅读 · 0 评论 -
istream/ostream
#include#include#include#includeusing namespace std;class Node /*自定义的类,只有两个整型成员*/{public: int x,y; Node():x(0),y(0) {} Node(int xx,int yy):x(xx),y(yy) {} /*输入输出*/ friend std::ostream& operator frie原创 2009-07-08 14:57:00 · 2099 阅读 · 0 评论 -
基本概念
Console应用程序/subsystem:console /entry:mainCRTStartup (ANSI版)/subsystem:console /entry:wmainCRTStartup (UNICODE版)Windows应用程序:/subsystem:windows /entry:WinMain (ANSI版)/subsystem:windows /etn原创 2009-07-07 11:20:00 · 465 阅读 · 0 评论 -
operator overlaoding
1.一元操作符可以是不带参数的成员函数[1]或带一个参数的非成员函数[1]。2.二元操作符可以是带一个参数的成员函数[1]或带两个参数的非成员函数[1]。3.operator=、operator[]、operator()、operator->只能定义为成员函数[1]。4.operator->的返回值必须是一个指针或能使用->的对象。5.重载 operator++ 和 operator-- 时带一转载 2009-09-03 11:54:00 · 410 阅读 · 0 评论 -
POSIX.1 and ISO C标准头文件
http://www.cnitblog.com/guopingleee/archive/2007/08/13/31701.html ISO C标准定义的头文件(24项) ---------------------- 验证程序断言 ---------------------- 支持复数算术运算 ----------------------转载 2009-08-31 17:51:00 · 1766 阅读 · 0 评论 -
c99 和 c89(ANSI c)
http://hi.baidu.com/gaojinshan/blog/item/d597798f0dc4bde9f01f3685.html C99是在C89(Ansi C)的基础上发展起来的,增加了基本数据类型,关键字 ,和一些系统函数等。 其实在初学阶段C89(ANSI C)和C99的区别是不易察觉的,所以不必太在意这个。 C99有一部分是对于大字符集的优化(很多资料上写的是A转载 2009-08-31 11:44:00 · 1382 阅读 · 0 评论 -
assert用法
http://hi.baidu.com/beibeiboo/blog/item/1a2a35c2307c353ce5dd3bc7.html assert宏的原型定义在中,其作用是如果它的条件返回错误,则终止程序执行,原型定义:#include void assert( int expression );assert的作用是现计算表达式 expression ,如果其值为假(即为0),那么它先向转载 2009-08-31 11:19:00 · 1021 阅读 · 0 评论 -
c 语言细节
POSIX多线程 define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL#define MIN(A,B) ((A) while(1) { } for(;;) { } int *a[10]; // An array of 10 pointers to integers int (*a)[10]; // A pointer原创 2009-08-31 18:06:00 · 565 阅读 · 0 评论 -
阅读源代码---交叉索引工具
Windows下的源码阅读工具Souce Insight凭借着其易用性和多种编程语言的支持,无疑是这个领域的“带头大哥”。Linux/UNIX环境下呢?似乎仍然是处于百花齐放,各有千秋的春秋战国时代,实际上,似乎其环境下的任何软件都是处于一种逐鹿中原的态势,也许这就是“集市”之于“大教堂”的优势所在吧!主要的交叉索引工具有:ctags、cscope、global、lxr等。下面将就各软件的优劣作一转载 2010-01-18 23:15:00 · 2329 阅读 · 1 评论