Hello,
The software manufacturer's bash of the year is over
We are inside three forms, one for building exercises on sound files, a form that can work in the selection of image files, audio, video, or text and a third form of zoning that allows shapes to choose books to his questions. The questions are of course not open form style multiple choice questions.
software being built under bash, it limits its use to Linux users, so I decided to rewrite the script into a more universal language, the language c + +
Under windows this is the beginning of the script that I created the gkri I install directory and the various files needed to create the exercise. In the next post I will indicate how to create a box dialog en c++
code
[
#include
#include
#include
#include
#include
#include
#include
using namespace std;
_mkdir("C:\\gkri");
_mkdir("C:\\gkri\\data");
_mkdir("C:\\gkri\\data\\comp");
CopyFile("index.html","C:\\gkri\\index.html",0);
CopyFile("aa.html","C:\\gkri\\data\\aa.html",0);
CopyFile("bb.html","C:\\gkri\\data\\bb.html",0);
CopyFile ("Answer.txt", "C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ Answer.txt", 0);
CopyFile ("proposition.txt", "C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ proposition.txt ", 0);
CopyFile (" index.php "," C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ index.php ", 0);
/ / other possibility abandoned
/ / file creation
response / / ofstream f ("C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ Answer.txt");
/ / if (f) court \u0026lt;\u0026lt;"response . cree txt "\u0026lt;
/ / else court \u0026lt;\u0026lt;" problem creation Answer.txt "" C: \\ \\ gkri \\ \\ data \\ \\ proposition.txt " \u0026lt;
/ / f.close ();
/ / alternative abandoned
/ / index.php
copy / / court \u0026lt;\u0026lt;"in data copy index.php" \u0026lt;
/ / ifstream src ("index.php", ios:: binary);
/ / ofstream dst ("C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ index.php", ios:: binary);
/ / dst \u0026lt;
/ / src.close ();
/ / dst.close ();
FILE * file = NULL;
file = fopen ("C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ Answer.txt", "w +");
if (file! = NULL) {
fputc ('A', file) / / Write character to
fclose (file);
}]
Five minutes of laughter for an adult, had an eternity for a child.
The software manufacturer's bash of the year is over
We are inside three forms, one for building exercises on sound files, a form that can work in the selection of image files, audio, video, or text and a third form of zoning that allows shapes to choose books to his questions. The questions are of course not open form style multiple choice questions.
software being built under bash, it limits its use to Linux users, so I decided to rewrite the script into a more universal language, the language c + +
Under windows this is the beginning of the script that I created the gkri I install directory and the various files needed to create the exercise. In the next post I will indicate how to create a box dialog en c++
code
[
#include
#include
#include
#include
#include
#include
#include
using namespace std;
_mkdir("C:\\gkri");
_mkdir("C:\\gkri\\data");
_mkdir("C:\\gkri\\data\\comp");
CopyFile("index.html","C:\\gkri\\index.html",0);
CopyFile("aa.html","C:\\gkri\\data\\aa.html",0);
CopyFile("bb.html","C:\\gkri\\data\\bb.html",0);
CopyFile ("Answer.txt", "C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ Answer.txt", 0);
CopyFile ("proposition.txt", "C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ proposition.txt ", 0);
CopyFile (" index.php "," C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ index.php ", 0);
/ / other possibility abandoned
/ / file creation
response / / ofstream f ("C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ Answer.txt");
/ / if (f) court \u0026lt;\u0026lt;"response . cree txt "\u0026lt;
/ / else court \u0026lt;\u0026lt;" problem creation Answer.txt "" C: \\ \\ gkri \\ \\ data \\ \\ proposition.txt " \u0026lt;
/ / f.close ();
/ / alternative abandoned
/ / index.php
copy / / court \u0026lt;\u0026lt;"in data copy index.php" \u0026lt;
/ / ifstream src ("index.php", ios:: binary);
/ / ofstream dst ("C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ index.php", ios:: binary);
/ / dst \u0026lt;
/ / src.close ();
/ / dst.close ();
FILE * file = NULL;
file = fopen ("C: \\ \\ gkri \\ \\ data \\ \\ comp \\ \\ Answer.txt", "w +");
if (file! = NULL) {
fputc ('A', file) / / Write character to
fclose (file);
}]
Five minutes of laughter for an adult, had an eternity for a child.
0 comments:
Post a Comment