Question: 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.

Language is C++ I'm having trouble making my code meet these requirements,

MY CODE:

#include #include #include using namespace std;

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

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!