摘要:
qt4.7 之前的线程操作 代码 需要重写一个类,继承QTread class mythread:public QThread{ ... 阅读全文
摘要:
请在头文件里面类开始的地方加上 Q_OBJECT !!!!!!! 再重新构建 !!! 加Q_OBJECT 宏, 这样是告诉编译器这个... 阅读全文
摘要:
使用vector需要包含头文件 什么是vector 向量是一个能够存放任意类型的动态数组。 初始化 一、不带参数 // 定义了一个i... 阅读全文
摘要:
int a = 10; auto au_a = a;//自动类型推断,au_a为int类型 cout << ty... 阅读全文
摘要:
swap(int a,int b){交换两个值}int main(){ int a, int b; swap(a,b) } **... 阅读全文
摘要:
QTimer类提供了重复和单次触发信号的定时器。 使用: .h#include //头文件 private: QTimer ... 阅读全文
摘要:
explicit关键字的作用就是防止类构造函数的隐式自动转换 explicit关键字只对有一个参数的类构造函数有效, 如果类构造函数... 阅读全文
摘要:
先写个hello.c 然后新建一个makefile文件或者Makefile文件(可以新建一个记事本,再改名字) 语法: 1、#号是注... 阅读全文
摘要:
1、新建表 create table `t_files` ( id int auto_increment, file_name varchar(100) default '', file_type tinyint(4) default 0, par... 阅读全文
摘要:
运行 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... 阅读全文