上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 使用vector需要包含头文件 什么是vector 向量是一个能够存放任意类型的动态数组。 初始化 一、不带参数 // 定义了一个i... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(59) 评论(0) 推荐(0)
摘要: int a = 10; auto au_a = a;//自动类型推断,au_a为int类型 cout << ty... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(700) 评论(0) 推荐(0)
摘要: swap(int a,int b){交换两个值}int main(){ int a, int b; swap(a,b) } **... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(95) 评论(0) 推荐(0)
摘要: QTimer类提供了重复和单次触发信号的定时器。 使用: .h#include //头文件 private: QTimer ... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(126) 评论(0) 推荐(0)
摘要: explicit关键字的作用就是防止类构造函数的隐式自动转换 explicit关键字只对有一个参数的类构造函数有效, 如果类构造函数... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(62) 评论(0) 推荐(0)
摘要: 先写个hello.c 然后新建一个makefile文件或者Makefile文件(可以新建一个记事本,再改名字) 语法: 1、#号是注... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(80) 评论(0) 推荐(0)
摘要: 1、新建表 create table `t_files` ( id int auto_increment, file_name varchar(100) default '', file_type tinyint(4) default 0, par... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(239) 评论(0) 推荐(0)
摘要: 运行 delete from t_files where id in (select id from t_files where find_in_set(id, getChildLst(1))); 报错:You can't specify target tab... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(185) 评论(0) 推荐(0)
摘要: 解决方法 1、用root用户登录:mysql -u root -p 2、设置参数log_bin_trust_function_creators为1 set global log_bin_trust_function_creators = 1; 结果: ... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(148) 评论(0) 推荐(0)
摘要: 函数和存储过程比较类似 1、存储过程可以有多个返回,比较适合做批量插入 2、函数有且仅有一个返回,比较适合处理数据后返回一个结果 语法 create function 函数名(参数列表) returns 返回类型 #声明 begin 函数... 阅读全文
posted @ 2022-05-15 21:49 贪睡地蜗牛 阅读(57) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页