Question: write a c++ program that takes input from two text files. each containing a theoretically unlimited amount of integers, thus the array needs to be

write a c++ program that takes input from two text files. each containing a theoretically unlimited amount of integers, thus the array needs to be dynamically made. this program will place the integers (which can be negative or positive) into a single array and sort them, then print them while avoiding duplicate values. sample input/output:

one.txt:

10 20 30 40

50

two.txt

-10 0 10 20

output:-10 0 30 40 50

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!