![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c/c++
军临城下
Only Time Can Tell
展开
-
C语言函数指针
#include <stdio.h> #include <stdlib.h>typedef struct calcu{ int (*add)(const int*,const int*); int (*sub)(const int*,const int*); int (*mul)(const int*,const int*); int (*div)(const int原创 2017-04-20 17:13:52 · 219 阅读 · 0 评论 -
Linux文件系统函数调用案例
刚学C++时老师布置的一个实验作业。#include <iostream> #include <iomanip> #include <fstream> #include <sstream> #include <vector> #include <string> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #incl原创 2017-05-06 14:49:40 · 413 阅读 · 0 评论 -
Window Api: 文件管理
一:删除,复制,重命名,移动文件#include <windows.h> #include <stdio.h> /** * 删除: -d 文件路径 * 复制: -c 旧文件路径 新文件路径 * 移动/重命名: -m 旧文件路径 新文件路径 */ int main(int argc, PCHAR argv[]) { if(lstrcmp("-d",argv[1]) == 0 &&原创 2017-05-06 15:38:33 · 418 阅读 · 0 评论