摘要: 1.用vs (我使用的是vs2013)编写一个dll库 calculator.c #include "calculator.h" int add(int x, int y) { return x + y; } calculator.h #pragma once #include <stdio.h> 阅读全文
posted @ 2020-12-14 18:52 fc724 阅读(1320) 评论(0) 推荐(0)
摘要: 函数解析:io_setup函数: 此系统调用用于创建一个同步io环境,可以同时处理maxevents个操作,ctxp必须初始化为0,io_setup会自动分配填充空间,所以,调用后一定要掉用io_destroy进行释放掉。返回值:成功为0,失败为以下值EAGAIN:maxevents已经超过个系统用 阅读全文
posted @ 2020-07-09 11:36 fc724 阅读(875) 评论(1) 推荐(0)
摘要: #include "stdafx.h" #include <direct.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <io.h> #define file_dir "E:\\ceshi\\data_t 阅读全文
posted @ 2020-06-04 11:41 fc724 阅读(161) 评论(0) 推荐(0)
摘要: //main 函数内容#include "widget.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); Widget w; w.show(); return a.exe 阅读全文
posted @ 2020-05-27 15:12 fc724 阅读(489) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 #define MAX_LONG 20 9 typedef struct 10 { 11 int scand; 12 void (* hs)(void * ); 13 char put[... 阅读全文
posted @ 2019-03-23 18:09 fc724 阅读(159) 评论(0) 推荐(0)
摘要: /* 1.尝试实现ls命令的功能 加选项-l -a -i -h */ #include #include #include #include #include #include #include #include #include #include #include int l_stat(char * p1,char * p); void a_stat(char * p); void i_s... 阅读全文
posted @ 2019-03-15 13:09 fc724 阅读(146) 评论(0) 推荐(0)
摘要: /*strlen strcpy strcmp strcat 查看功能是什么,并自定义函数,与之功能一至*/ #include int strlen_long(char * ch); void strcpy_cpy(char * c,char * ch); int strcmp_compare(char * ch ,char * c); int strcat_link(char * sz,cha... 阅读全文
posted @ 2019-01-21 20:12 fc724 阅读(112) 评论(0) 推荐(0)