Homepage Gkri under Qt4 main.cpp how
# include # include QtGui QApplication
# include # include AbadieJoris.h
QStringList
# include # include iostream qdir.h
# include # include string
QFile
QPushButton # include using namespace std;
int main (int argc, char * argv []) {
string build = "Exo"
QDir Ldirectory;
/ / I created the directory containing Exo year
lRepertoire.mkdir (construire.c_str ());
QDir mRepertoire;
/ / I create the sub-directory in which find data
mRepertoire.mkpath ("Exo / mechanism");
QDir nRepertoire;
/ / I create the directory that will contain the comparator with proposal / response
nRepertoire.mkpath ("Exo / mechanism / comparator");
/ / I place my file-based index that will be modified by software
QFile lfichier;
lfichier.copy("index.html", "Exo/index.html");
//je place ici les entĂȘtes du fichier index
QFile mfichier;
mfichier.copy ("aa.html", "Exo / mechanism / aa.html");
QFile nFile;
lfichier.copy ("bb.html", "Exo / mechanism / bb.html");
/ / I belong here the heart of the comparator anti MCQ I created
QFile ofichier;
lfichier.copy ("index.php", "Exo / mechanism / comparator / index.php ");
/ / here I place the file or written proposals go
QFile pfichier;
lfichier.copy ("proposition.txt", "Exo / mechanism / comparator / proposition.txt");
/ / here I place the file or the answers will be recorded by the software
QFile ufichier;
ufichier.copy ("Answer.txt", "Exo / mechanism / comparator / Answer.txt");
/ / call by the window with three buttons so the user of the software can choose which type of exercise he wants to create
QApplication app (argc, argv);
AbadieJoris window;
fenetre.show ();
app.exec return ();}
Five minutes of laughter for an adult, had an eternity to a child.
0 comments:
Post a Comment