摘要: 参考文章: https://blog.csdn.net/litao31415/article/details/100144400?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7 阅读全文
posted @ 2020-06-30 18:19 cicero 阅读(459) 评论(0) 推荐(0) 编辑
摘要: epoll_server.c //epoll_server.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/so 阅读全文
posted @ 2020-06-30 14:12 cicero 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <assert.h> int main () { int keyboard; int ret,i; char c; 阅读全文
posted @ 2020-06-30 14:09 cicero 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 编译qt时。configure 添加选项 -qt-freetype 代码增加: //设置中文字体 a.setFont(QFont("wenquanyi", 16)); //设置中文编码 #if _MSC_VER QTextCodec *codec = QTextCodec::codecForName 阅读全文
posted @ 2020-06-30 13:41 cicero 阅读(448) 评论(0) 推荐(0) 编辑