I have a problem with command line parameters. I finished the program so I can start it like this from command line:

```
program.exe test.txt copy_test.txt

```

Basically, my program does the following :

* inputs some text file
* sorts it and copy to a new text file

BUT (always that but?!), I should start the program from command line like this:

```
program.exe -input=test.txt -output=copy_test.txt

```

And I don't know how to do that. I researched, but I didn't find any help :(

Please respond.

```
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
using namespace std;

int main ( int argc, char* argv[])
{
 ifstream in(argv[1]);
 ofstream out(argv[2]);
 vector <string> sV;
 string line;
 while (in >> line)
  sV.push_back(line);
 for ( int i = 0; i < sV.size(); i++)
 sort ( sV.begin(), sV.end () );
 for ( int i = 0; i < sV.size(); i++)
 out << sV[i] << endl;
 cin.get();
 return 0;
}

```