Write a C++ program that retrieves all the numbers stored in a data file named LAB1.TXT. As each number is retrieved, it is displayed on the screen. After the end of file is reached, the numbers should be sorted into numerical order and then the result should be displayed EXAMPLE:  Assuming LAB1.TXT has the following numbers: 7  4  12  3       The output would be Original order:7  4  12  3Numerical order:3  4  7  12 | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
0

 Write a C++ program that retrieves all the numbers stored in a data file named LAB1.TXT. As each number is retrieved, it is displayed on the screen. After the end of file is reached, the numbers should be sorted into numerical order and then the result should be displayed EXAMPLE:  Assuming LAB1.TXT has the following numbers: 7  4  12  3       The output would be Original order:7  4  12  3Numerical order:3  4  7  12

25th Sep 2016, 7:00 PM
Najwa
Najwa - avatar
2 odpowiedzi
0
What cout stands for ?
25th Sep 2016, 7:02 PM
lucianomagaldi
lucianomagaldi - avatar
0
the numerical order
25th Sep 2016, 7:05 PM
Najwa
Najwa - avatar