C/C++
Gremorse
这个作者很懒,什么都没留下…
展开
-
预编译/条件编译 记录
一、 #ifdef 标示符 程序段1; #endif 译为:若定义了标示符,则执行程序段1 例子1: #include "iostream.h" int main() { #ifdef DEBUG cout #endif return 0; } 运行结果为: Press any key to continue 例子2: #include原创 2013-09-25 18:27:01 · 607 阅读 · 0 评论 -
MSYS记录
https://code.google.com/p/msys-cn/原创 2013-10-13 23:50:52 · 496 阅读 · 0 评论 -
LINUX Socket学习笔记
套接字接口流程图 #include /* 创建套接字 * @return 成功返回文件描述符,出错返回-1 */ int socket(int domain, int type, int protocol); 使用socket函数创建套接字。 参数说明: domain 确定通信的特性,包括地址格式,每个域都有自己的地址格式。POSIX.1指定的域包括:转载 2013-10-15 00:03:04 · 1187 阅读 · 0 评论