New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
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
0 Votes
2 AnswersHot today
Android studio Tutorial
0 Votes
Why output is 0 for from_chars
2 Votes
Cyber security
0 Votes
Why did my code got deleted?
0 Votes
Bash
0 Votes
Personal chat
1 Votes
Help
0 Votes
Error...
1 Votes