Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char *argv[])
- {
- // parameters variables
- string input = "", output = "", dictionary = "", direction = "";
- // checking main arguments
- for (int i = 1; i < argc; i++)
- {
- string argument = argv[i];
- if (argument == "-i")
- input = argv[i + 1];
- else if (argument == "-s")
- dictionary = argv[i + 1];
- else if (argument == "-o")
- output = argv[i + 1];
- else if (argument == "-k")
- direction = argv[i + 1];
- else if (argument == "-h")
- {
- cerr <<
- "-i input text file \n" <<
- "-o output text file \n" <<
- "-s dictionary text file \n" <<
- "-k translation diretion enpl/plen \n";
- return 0;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement