上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
摘要: 在我们的c++程序中,引用别人的库的时候有两种方式:静态库和动态库 动态库:动态库有两个文件,一个lib文件和一个dll文件。lib文件中包含了方法名和方法所在的dll等索引信息,并不包含方法的具体实现,方法的具体实现在dll文件中。在编译阶段我们只需要lib文件,只要相应的lib文件引用没有问题, 阅读全文
posted @ 2020-11-23 11:15 maycpou 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 命令:TREE /F 阅读全文
posted @ 2020-11-18 14:12 maycpou 阅读(2142) 评论(0) 推荐(0) 编辑
摘要: windows:Sleep(5);(S大写,表示5毫秒) ubuntu:sleep(5);(s小写,表示5秒) 阅读全文
posted @ 2020-11-06 15:07 maycpou 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 在Windows的vs中使用std::mutex没有问题,将代码迁移到ubuntu上后报错:‘mutex’ in namespace ‘std’ does not name a type 解决方法:加上头文件 #include <thread> #include <mutex> #include < 阅读全文
posted @ 2020-11-06 15:05 maycpou 阅读(8039) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/WindSun/p/12286024.html 在makefile中经常会看到这些选项,gcc默认会在程序当前目录、path路径中查找所需要的材料如何给gcc添加我们自己的原材料(头文件,库等) -I (注意是大写的i) 给gcc添加自定义的头文 阅读全文
posted @ 2020-11-06 11:03 maycpou 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 不需要安装包,但是编译的时候需要手动包含pthread包:g++ threadtest1.cpp -lpthread -o threadtest1 测试代码: #include <pthread.h>#include <stdlib.h>#include <stdio.h>#include <str 阅读全文
posted @ 2020-11-06 10:26 maycpou 阅读(2693) 评论(0) 推荐(0) 编辑
摘要: 1.下载pthreads-w32-2-9-1-release.zip文件,解压 2. 项目属性=》=》vc++目录=》包含目录=》添加 xxx\pthreads-w32-2-9-1-release\Pre-built.2\include 3.项目属性=》=》vc++目录=》库目录=》添加xxx\pt 阅读全文
posted @ 2020-10-29 10:23 maycpou 阅读(3311) 评论(0) 推荐(0) 编辑
摘要: 1.下载包mysql-connector-c-6.1.11-winx64.zip 2.解压后将bin目录下面的 libmysql.dll 和 libmysql.lib复制到项目的根目录下面 3.项目属性=》vc++目录=》包含目录=》添加包里面的include路径到目录中 4.注意项目属性设置的时候 阅读全文
posted @ 2020-10-29 10:09 maycpou 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1. <label > <input type="checkbox" style="display:none" /> </label> 这里即使将input标签设置为了display:none,但是由于将这个input标签写在了label标签内部,点击了lable标签也会触发input标签的点击事件 阅读全文
posted @ 2020-10-26 16:52 maycpou 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 安装包: apt-get install mysql-server mysql-client apt-get install libmysqlclient-dev 代码: #include <mysql.h>#include <stdio.h> int main() { MYSQL *conn; M 阅读全文
posted @ 2020-10-23 15:11 maycpou 阅读(253) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页