things
This commit is contained in:
parent
d7d6ae1479
commit
bbc8b871bb
5 changed files with 54 additions and 4 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <locale>
|
||||
#include <iostream>
|
||||
|
||||
struct typeinfo {
|
||||
std::string type;
|
||||
|
|
@ -499,7 +500,7 @@ int main(int argc, char** argv) {
|
|||
int fail = 0;
|
||||
|
||||
if(argc < 2) {
|
||||
printf("Usage: %s XML\n", argv[0]);
|
||||
std::cerr << "Usage: " + std::string(argv[0]) + " XML" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -558,7 +559,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
|
||||
if(fail) {
|
||||
fprintf(stderr, "Failed to parse XML\n");
|
||||
std::cerr << "Failed to parse XML" << std::endl;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue