Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuiteDiscussions Q&R
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 Vote
2 Réponses2
-6 Votes
2 Réponsesusing a while loop create a guessing game program that keeps asking the user to enter a number until the user enters the number 7. You will need to create and initialise an int variable to zero. You can then use this variable as the condition in your while loop ( while the number is not equal to seven) Then in the while loop ask the user to enter a number and store the number entered in the number variable that is in the conditions of your loop.
0 Vote
1 RéponseAujourd'hui en vedette
3 consecutive words
1 Votes
Access deny problem
2 Votes
c++ help
0 Votes
BOTSS
0 Votes
A small question
0 Votes
How to insert a link into code
0 Votes
Help
0 Votes
What's wrong with my code?
0 Votes