设为首页 加入收藏

TOP

用Qt写的平均绩点计算器
2014-11-24 07:34:59 来源: 作者: 【 】 浏览:0
Tags:平均 计算器

之前用C#的WPF写了一个平均绩点计算器,发到学校的贴吧里,反响还不错。不过没过几个月,就有人写了一个网络版的计算器,把我盖过去了。“既生瑜,何生亮?”开个玩笑。


转到Qt之后,学了一阵子,想练练手,就用Qt写了一个平均绩点计算器。



源码如下


mainwindow,h


#ifndef MAINWINDOW_H
#define MAINWINDOW_H


#include
#include


namespace Ui {
class MainWindow;
}


class MainWindow : public QMainWindow
{
Q_OBJECT

public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();

private:
Ui::MainWindow *ui;
double result;
QList LX,LJ;
int count;


public slots:
void slot_add() ;
void slot_cal();
};


#endif // MAINWINDOW_H


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇使用Qt和OpenCV做的图片平滑器 下一篇在Cocos2d 2.0中使用ARC的方法

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Redis 分布式锁全解 (2025-12-25 17:19:51)
·SpringBoot 整合 Red (2025-12-25 17:19:48)
·MongoDB 索引 - 菜鸟 (2025-12-25 17:19:45)
·What Is Linux (2025-12-25 16:57:17)
·Linux小白必备:超全 (2025-12-25 16:57:14)