Question: Please fix this program using C++, I'm tryin to write a program that read data from input file (data1.txt), store them as 2 different arrays,

Please fix this program using C++, I'm tryin to write a program that read data from input file (data1.txt), store them as 2 different arrays, and print out each element of arrays.

Data1.txt

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

100 80 60 40 20

Here is my code

Thanks

Please fix this program using C++, I'm tryin to write a program

that read data from input file (data1.txt), store them as 2 different

Quick Launch (Ctrl+Q) Programi (Debugging)-Microsoft Visual Studio Sign in File Edit View Project Build Debug Team Iools Test R Tools Analyze Window Help -Debug E | Lifecycle Events , Thread: [976] Main Thread Process: [7892] Program1.exe Header.cpp Header.h Source.cpp main0 Program 1 - (Global Scope) 2 3 4 #include #include > temp) arr [i++] temp ; = size = 1; for (i- e; i

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!