
技能
豆豆不是逗逗
这个作者很懒,什么都没留下…
展开
-
linux C++ FTP客户端代码
一、客户端代码头文件实现ftp.hclass FTPClient{public: FTPClient() { m_port = 21; } ~FTPClient() {} //链接服务器 int ftp_connect(const char *host, int port, const char *user, const char *pwd); //断开服务器 int ftp_quit(int c_sock); //设置表示类型 int ftp_type(int c原创 2020-08-25 14:31:43 · 1855 阅读 · 0 评论 -
C++打印展开宏和嵌套宏
一、打印展开宏方式一.在linux下,例如main.c中使用宏,使用gcc -E main > main.i main.i中即可查看展开的宏定义了。#include <stdio.h>#define FUNC(a,b) (a)+(b)#define GET_MACRO(_1,_2,NAME,...) NAMEint main(){ FUNC(5,5); return 0;}方式二#include <st...原创 2020-07-13 15:39:44 · 1304 阅读 · 0 评论