1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
void ecrire(char* destination)
{
ofstream of(destination);
of<<"<xml version 1.0 encoding=utf-8?>"<<endl; <---probleme devrait être <xml version "1.0" encoding="utf-8"?>
of<<"<metalink version=3.0 smlns=http://www.metalinker.org/>"<<endl;
of<<"<publisher>"<<endl;
of<<"<name> xbwc </name>"<<endl;
of<<"</publisher>"<<endl;
of<<"<description> ";
string rep;
cout<<"Veuillez saisir une description "<<endl;
cin>>rep;
of<<rep.c_str()<<" </description>"<<endl;
of<<"<files>"<<endl;
of<<"<file name=";
cout<<"Veuillez saisir le nom du fichier"<<endl;
cin>>rep;
of<<rep.c_str()<<">"<<endl;
of.close();
exit(0);
} |