摘要: 安装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 阅读(18) 评论(0) 推荐(0)
摘要: string::find()函数:是一个字符或字符串查找函数,该函数有唯一的返回类型,即string::size_type,即一个无符号整形类型,可能是整数也可能是长整数。如果查找成功,返回按照查找规则找到的第一个字符或者子串的位置;如果查找失败,返回string::npos,即-1(当然打印出的结 阅读全文
posted @ 2020-04-08 10:34 BISTER 阅读(89) 评论(0) 推荐(0)
摘要: 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 阅读(66) 评论(0) 推荐(0)
摘要: 参考: 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 阅读(7) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/MrYuan/p/4800257.html 阅读全文
posted @ 2020-03-28 11:59 BISTER 阅读(4) 评论(0) 推荐(0)
摘要: 字符串流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)
摘要: 函数名本质上就代表函数的首地址,数组名代表数组的首元素地址。 type (*ptr) (param) 函数指针 = 函数的指针,一个指针变量指向的地址存着一个函数. //定义一个函数 void fuc1(int a){ cout << "this is fuc1 define" << a <<end 阅读全文
posted @ 2020-03-23 21:54 BISTER 阅读(14) 评论(0) 推荐(0)
摘要: I2C结构 I2C只使用两条双向漏极开路,串行数据线(SDA)和串行时钟线(SCL),数据线用于传输数据,时钟线用于同步数据收发。SDA和SCL总线都需要接上拉电阻,当总线空闲时,两根线均为高电平。连接到总线上的任意器件输出低电平都会将总线信号拉低。I2C允许相当大的工作电压范围,但典型的电压准位为 阅读全文
posted @ 2020-03-23 16:34 BISTER 阅读(73) 评论(0) 推荐(0)
摘要: # 显示数据库 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)
摘要: mysql8.0.17版本长时间没有启动链接,再次链接是出现如下错误: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 访问被拒绝,看了很多博客说是在 myini 文件中的mysq 阅读全文
posted @ 2020-03-08 15:39 BISTER 阅读(8) 评论(0) 推荐(0)