Commit 35f57e63 authored by Edlira Nano's avatar Edlira Nano
Browse files

added filename in cin

git-svn-id: https://subversion.renater.fr/masschroq/trunk@2084 e4b6dbb4-9209-464b-83f7-6257456c460c
parent a0e04ed6
......@@ -100,14 +100,16 @@ int main(int argc, char **argv) {
}
break;
case 1 :
cerr << "masschroq : missing input filename." << endl;
cerr << "Try 'masschroq --help' for more information." << endl;
return 1;
cout << "Type the masschroqML file name to analyse" << endl;
std::string filename;
std::getline(std::cin, filename);
fileName = filename.c_str();
//return 1;
break;
default :
cerr << "masschroq : invalid use." << endl;
cerr << "Try 'masschroq --help' for more information." << endl;
return 1;
// default :
// cerr << "masschroq : invalid use." << endl;
//cerr << "Try 'masschroq --help' for more information." << endl;
//return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment