subject

Program your own file lab10.cpp in which your main() function will test Merge Sort functions. The main () function,
declares a vector which can store a collection of integers.
read values from the file sort. txt (which can be downloaded with this lab material) to the vector.
You may use the following code to read the data from a file to a vector, #include ifstream input("sort. txt"); int number; while (input >> number) v. push_back(number); input. close(); 1 }
call merge sort functions to sort the elements in the vector.
Print the sorted items to show that your program can work correctly

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Aconstruction company is creating a powerpoint presentation describing how they calculate costs during each construction step. they plan to email this presentation to clients. the individual clients will be watching the presentation slide show on their own personal computers. what is the most important formatting step the company should take to make the text readable and pleasing to the eye?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
You know the right answer?
Program your own file lab10.cpp in which your main() function will test Merge Sort functions. The m...
Questions
question
Mathematics, 17.10.2019 16:40
question
Mathematics, 17.10.2019 16:40
question
Computers and Technology, 17.10.2019 16:40
Questions on the website: 13722361