摘要: C++队列可以不需要自己写,有现成的模版类 头文件: #include <queue> #include <iostream> using namespace std; (之前以为是c语言,发现不可以,要加上C++的头文件) 具体用法: 队列创建:queue <int> queue1; (这里的in 阅读全文
posted @ 2019-04-10 18:49 QRain 阅读(11721) 评论(0) 推荐(0)
摘要: 结构体的定义: 方法一: struct student { char name[10]; int age; int number; }; struct student stu1; 方法二: struct student { char name[10]; int age; int number; }s 阅读全文
posted @ 2019-04-10 18:25 QRain 阅读(952) 评论(0) 推荐(0)
摘要: Qt 5.8 + Mac 10.14 qdevice.pri文件里没有网上说的那行应该改的代码,自己写上这句话也没有解决问题 最终解决方案: 在命令行输入:sudo xcode-select -s /Applications/Xcode.app/Contents/Developer 阅读全文
posted @ 2019-04-10 00:51 QRain 阅读(1023) 评论(0) 推荐(0)