LouZhang

导航

2012年7月28日

CUG2012年暑期ACM训练赛(单人赛)

摘要: A题是一个模拟或者说是搜索吧就跟倒可乐的问题差不多原题是ZOJ1005题View Code #include<cstdio>#include<cstring>#include<algorithm>using namespace std; char ans[101000][10];int main(){ int tcase; scanf("%d", &tcase); //int flag = 0; while(tcase --){ int count = 0; int x, y, z; scanf("%d%d%d" 阅读全文

posted @ 2012-07-28 23:26 louzhang_swk 阅读(388) 评论(0) 推荐(0) 编辑

标准对话框:StandardDialogs

摘要: QT对话框有很多种,有QDialog, QErrorMessage, QInputDialog, QMessageBox, QPrintDialog, QProgressDialog等。。这个标准对话框的例子要介绍了文件,字体,颜色对话框的使用main.cpp#include "standarddialogs.h"int main(int argc, char *argv[]){ QFont font("ZYSong18030",12); QApplication::setFont(font); QApplication a( argc, argv ); 阅读全文

posted @ 2012-07-28 10:11 louzhang_swk 阅读(365) 评论(0) 推荐(0) 编辑

第一个QT, "hello linux"

摘要: 本来是要这个月底做一个人人对战的五子棋的结果因为信安大赛一直拖直到前天才完成第一个输出昨天好好学了这两个感觉这个实例分析学不到什么东西= =、讲的都是实际,如果碰到另一种可能就不懂了有时间把CWM那本书借来看看下面是我的代码#include <QApplication>#include <QPushButton>int main(int argc, char *argv[]){ QApplication app(argc, argv); QPushButton b("hello linux!"); b.show(); QObject::connect 阅读全文

posted @ 2012-07-28 09:53 louzhang_swk 阅读(156) 评论(0) 推荐(0) 编辑