Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Language is C++ I'm having trouble making my code meet these requirements, could you show me what to change and explain what is going on
Language is C++
I'm having trouble making my code meet these requirements, could you show me what to change and explain what is going on at each step.
Please use my code as a base and make any modifications needed.
MY CODE:
#include
int ** theTable;
int main() {
int numRows = 10; int numCols = 20;
int** theTable = new int* [numRows];
string fileName; cout
ifstream fin; fin.open(fileName); if (!fin) { cout
for (int i = 0; i
for (int r = 0; r
Now write a program that performs the following tasks: - Prompt the user for a file name - Accept that file name - Open the file for input (and exit if the file is not found) - Read the data in the file - Display the data as a table, in nice neat rows and columns Everything you need to know is here and in the previous dem
Step 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