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