Question: why this does not stop requiring me to input file name when i press enter: #include #include using namespace std; int main ( ) {

why this does not stop requiring me to input file name when i press enter: #include
#include
using namespace std;
int main()
{
ifstream inFile;
ofstream outFile;
string fileName;
int sud[9][9];
cout<<"Enter file name : ";
cin.ignore();
cin>>fileName;
inFile.open(fileName);
for(int r=0;r<9;r++)
{
for(int c=0;c<9;c++)
{
cin>>sud[r][c];
}
}
for(int r=0;r<9;r++)
{
for(int c=0;c<9;c++)
{
cout<

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!