Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 #includeStep 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