Answered step by step
Verified Expert Solution
Question
1 Approved Answer
im reading a txt file that has = abcdefg but im only able to get the first two columns what can I do? 11(GetNum ==
im reading a txt file that has = abcdefg
but im only able to get the first two columns what can I do?
11(GetNum == 3){ } if(GetNum == 4){ A Unused variable 'j' A Unused variable 'k' Unused variable 'p' 52 void readFile(string array[rows][cols], int choice) { if( choice == 1){ string array1[rows]; string array2[rows]; int i =0; int i =0; int k =1; int p =1; fstream file; string input; string inputp; file.open("letters.txt", ios::in); if(file){ while( getline(file, input)) { array[0][i] = input; i++; file.close(); } else { coutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started