91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

基于QT4的 列車時刻表查詢系統(tǒng),mini2440移植 教程 +源碼

資源截圖

代碼片段和文件信息

/********************************************************************************
*?File?Name: main.cpp
*?Description: 第5章實例訓(xùn)練??????????
*?Reference?book:《Linux環(huán)境下Qt4圖形界面與MySQL編程》,機械工業(yè)出版社.2012.1??
*?E_mail:?openlinux2011@gmail.com ????????????????
*********************************************************************************/
#include?
#include?
#include?se>
#include?
#include?“mainwindow.h“

static?bool?createConnection()
{
????QSqlDatabase?db?=QSqlDatabase::addDatabase(“QMYSQL“);
????db.setUserName(“root“);//用戶名
????db.setPassword(“123456“);//密碼
????db.setHostName(“l(fā)ocalhost“);
????db.setDatabaseName(“Stationhelper“);//數(shù)據(jù)庫名
????db.setPort(3306);//端口
????if(!db.open())
????{
????????qDebug()<<“open?failed\n“<????????return?false;
????}
????else
????{
????????qDebug()<<“open?database?success\n“;
????}
????return?true;
}

int?main(int?argc?char?*argv[])
{
????QApplication?a(argc?argv);
????if(!createConnection())
????????return?0;
????MainWindow?w;
????w.show();
????return?a.exec();
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\
?????目錄???????????0??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\
?????文件????????9137??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\Makefile
?????文件??????456217??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\exp5
?????文件?????????324??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\exp5.pro
?????文件???????16270??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\exp5.pro.user
?????文件????????1165??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\main.cpp
?????文件??????340472??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\main.o
?????文件????????4391??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\mainwindow.cpp
?????文件????????1038??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\mainwindow.h
?????文件??????421072??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\mainwindow.o
?????文件????????6337??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\mainwindow.ui
?????文件????????2877??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\moc_mainwindow.cpp
?????文件??????286896??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\moc_mainwindow.o
?????文件????????9085??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\exp5\ui_mainwindow.h
?????文件????????3664??2012-09-15?21:34??第5章?基于QT4的列車時刻表查詢系統(tǒng)\trainHelper.txt

評論

共有 條評論