会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
maycpou
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
12
13
14
15
16
17
18
19
20
···
28
下一页
2020年11月23日
lib和dll
摘要: 在我们的c++程序中,引用别人的库的时候有两种方式:静态库和动态库 动态库:动态库有两个文件,一个lib文件和一个dll文件。lib文件中包含了方法名和方法所在的dll等索引信息,并不包含方法的具体实现,方法的具体实现在dll文件中。在编译阶段我们只需要lib文件,只要相应的lib文件引用没有问题,
阅读全文
posted @ 2020-11-23 11:15 maycpou
阅读(548)
评论(0)
推荐(0)
2020年11月18日
windows使用cmd打印出当前路径下的所有文件名称
摘要: 命令:TREE /F
阅读全文
posted @ 2020-11-18 14:12 maycpou
阅读(2229)
评论(0)
推荐(0)
2020年11月6日
windows中的sleep和Ubuntu中的sleep
摘要: windows:Sleep(5);(S大写,表示5毫秒) ubuntu:sleep(5);(s小写,表示5秒)
阅读全文
posted @ 2020-11-06 15:07 maycpou
阅读(659)
评论(0)
推荐(0)
‘mutex’ in namespace ‘std’ does not name a type
摘要: 在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
阅读(8796)
评论(0)
推荐(0)
gcc命令参数
摘要: 转自:https://www.cnblogs.com/WindSun/p/12286024.html 在makefile中经常会看到这些选项,gcc默认会在程序当前目录、path路径中查找所需要的材料如何给gcc添加我们自己的原材料(头文件,库等) -I (注意是大写的i) 给gcc添加自定义的头文
阅读全文
posted @ 2020-11-06 11:03 maycpou
阅读(322)
评论(0)
推荐(0)
ubuntu18.04 使用pthread库
摘要: 不需要安装包,但是编译的时候需要手动包含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
阅读(2854)
评论(0)
推荐(0)
2020年10月29日
vs2019 c语言配置pthreads多线程
摘要: 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
阅读(3448)
评论(0)
推荐(0)
vs2019 c语言 配置连接mysql
摘要: 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
阅读(503)
评论(0)
推荐(0)
2020年10月26日
label和input标签的羁绊
摘要: 1. <label > <input type="checkbox" style="display:none" /> </label> 这里即使将input标签设置为了display:none,但是由于将这个input标签写在了label标签内部,点击了lable标签也会触发input标签的点击事件
阅读全文
posted @ 2020-10-26 16:52 maycpou
阅读(182)
评论(0)
推荐(0)
2020年10月23日
ubuntu c连接mysql
摘要: 安装包: 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
阅读(272)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
28
下一页
公告