Skip to content
Snippets Groups Projects
Commit f7886efd authored by Måns Fredriksson Franzén's avatar Måns Fredriksson Franzén
Browse files

Update qt.cpp

parent 55b00da0
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,9 @@ int main(int argc, char** argv) ...@@ -7,6 +7,9 @@ int main(int argc, char** argv)
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
assert(argc==2); /* argv[1] is the destination file */ assert(argc==2); /* argv[1] is the destination file */
/* Your code here */ const QString from ="马Häst马.txt";
const QString dest ="qt.txt";
QFile::copy(from,dest);
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment