摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2685 题意:求gcd(a^m - 1, a^n - 1) mod k 思路:gcd(a^m - 1, a^n - 1) = a^gcd(m, n) - 1 code: 阅读全文
posted @ 2016-04-19 20:17 jasaiq 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1 ui->setupUi(this); 2 ui->mainToolBar->hide(); 3 4 tableView = new QTableView(this); 5 6 7 // 设置表头 8 QStandardItemModel *studentModel = new QStandardItemModel(); 9 ... 阅读全文
posted @ 2016-04-19 17:28 jasaiq 阅读(3216) 评论(0) 推荐(0) 编辑
摘要: 1 #ifndef MAINWINDOW_H 2 #define MAINWINDOW_H 3 4 #include 5 6 namespace Ui { 7 class MainWindow; 8 } 9 10 class MainWindow : public QMainWindow 11 { 12 Q_OBJECT 13 14 public: 15 ... 阅读全文
posted @ 2016-04-19 16:50 jasaiq 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: 一、布局管理器 QHBoxLayout 水平布局 QVBoxLayout 垂直布局 QGridLayout 格点布局 QFormLayout 关联布局 QSplitter 分裂器 Spacers 间隔器 二、按钮 PushButton 通常用它来执行命令或触发事件 RadioButton 单选按钮 阅读全文
posted @ 2016-04-19 15:10 jasaiq 阅读(637) 评论(0) 推荐(0) 编辑