Correct the following code segment so that it opens the file whose name is entered via the input statement.
ifstream inData;
string name;
cout << "Enter the name of the file: ");
cin >> name;
infile.open(name);
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.