copy a file in Qt 4
By adding the copy necessary files to the creator of exercises gives:
code:
# include # include QtGui QApplication
# include # include AbadieJoris.h
qdir.h
#
include iostream # include # include string
qfile
using namespace std;
int main (int argc, char * argv []) {
construire string = "Exo"
lRepertoire QDir;
/ / if (lDir.exists (mDate.c_str (), false))
lRepertoire.mkdir (construire.c_str ());
mRepertoire
QDir;
/ / if (lDir.exists (mDate.c_str (), false))
//mDir.mkpath(construire1.c_str()&Exo);
mRepertoire.mkpath("Exo/mecanisme");
QDir nRepertoire;
// if (lDir.exists(mDate.c_str(), false))
//nDir.mkdir(construire1.c_str());
nRepertoire.mkpath("Exo/mecanisme/comparateur");
QFile lfichier;
lfichier.copy ("index.html", "Exo / index.html");
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