会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
CDF5BAC6
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2020年4月25日
gcc环境下 使用C/C++ 连接Mysql数据库
摘要: 在网上查询很久资料,都是使用VS Studio的。 没有GCC环境下,使用C/C++连接mysql数据库的详细指导,查询资料后现总结如下: 首先,先将mysql 下的include文件夹复制到自己的工程下。同时将lib文件夹下的libmysql.dll libmysql.lib mysqlclien
阅读全文
posted @ 2020-04-25 21:39 BISTER
阅读(76)
评论(0)
推荐(0)
2020年4月8日
Windows10安装MinGW
摘要: 安装MinGW参考: https://blog.csdn.net/u013171283/article/details/80898442 安装过程中可能会出现下面两个文件错误 make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma gdb-7.6.1-1-m
阅读全文
posted @ 2020-04-08 13:11 BISTER
阅读(19)
评论(0)
推荐(0)
line.find("*") == string::npos
摘要: string::find()函数:是一个字符或字符串查找函数,该函数有唯一的返回类型,即string::size_type,即一个无符号整形类型,可能是整数也可能是长整数。如果查找成功,返回按照查找规则找到的第一个字符或者子串的位置;如果查找失败,返回string::npos,即-1(当然打印出的结
阅读全文
posted @ 2020-04-08 10:34 BISTER
阅读(92)
评论(0)
推荐(0)
2020年4月3日
char* 、const char* 、char []、string互相转换使用
摘要: 17.11 — C-style string symbolic constants – Learn C++ char* X= "ssss":X是指向存放 字符串常量 ssss的地址,可以直接使用char*变量修改该地址处的内容 char* ptr = "sssss1"; char ptrarray[
阅读全文
posted @ 2020-04-03 15:43 BISTER
阅读(72)
评论(0)
推荐(0)
2020年3月31日
Windows下Socket通信
摘要: 参考: https://blog.csdn.net/qq_36409711/article/details/78937137? https://blog.csdn.net/qq_27923041/article/details/83857964 服务端 #include <iostream> #in
阅读全文
posted @ 2020-03-31 12:08 BISTER
阅读(8)
评论(0)
推荐(0)
2020年3月28日
C++异常
摘要: https://www.cnblogs.com/MrYuan/p/4800257.html
阅读全文
posted @ 2020-03-28 11:59 BISTER
阅读(5)
评论(0)
推荐(0)
2020年3月27日
C++文件流、字符串流
摘要: 字符串流stringstream #include <iostream> #include <stdexcept> #include <exception> #include <vector> #include <fstream> #include <sstream> using namespace
阅读全文
posted @ 2020-03-27 17:24 BISTER
阅读(10)
评论(0)
推荐(0)
2020年3月23日
函数指针VS指针函数、数组指针VS指针数组
摘要: 函数名本质上就代表函数的首地址,数组名代表数组的首元素地址。 type (*ptr) (param) 函数指针 = 函数的指针,一个指针变量指向的地址存着一个函数. //定义一个函数 void fuc1(int a){ cout << "this is fuc1 define" << a <<end
阅读全文
posted @ 2020-03-23 21:54 BISTER
阅读(15)
评论(0)
推荐(0)
I2C总线
摘要: I2C结构 I2C只使用两条双向漏极开路,串行数据线(SDA)和串行时钟线(SCL),数据线用于传输数据,时钟线用于同步数据收发。SDA和SCL总线都需要接上拉电阻,当总线空闲时,两根线均为高电平。连接到总线上的任意器件输出低电平都会将总线信号拉低。I2C允许相当大的工作电压范围,但典型的电压准位为
阅读全文
posted @ 2020-03-23 16:34 BISTER
阅读(78)
评论(0)
推荐(0)
2020年3月12日
mysql
摘要: # 显示数据库 show databases; # 删除银行数据库 drop database if exists bankinfo; # 创建银行数据库 create database if not exists bankinfo; # 使用银行数据库 use bankinfo; # 创建账户表
阅读全文
posted @ 2020-03-12 15:15 BISTER
阅读(6)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告