subject

Create a vector of MYStrings that is size 100 read each of the words from the file called "infile2.txt" (the file is out in Files section under Program Resources). You can call the read function directly on the indexed vector. (do not use vector's push_back function. See programming note below*). Example: while ( words[count].read(fin) ) {...} as you are reading the words in, keep a count of how many words were read in. After you have read in all the words from the file, resize your vector to the correct size based on your count of the number of words read in. sort the MYStrings from smallest to largest (this will be based on the ASCII encodingmeaning capital letters will sort before lower case letters) using Bubble Sort output the sorted words to outfile. txt file 6 words per line ( use setw(13), which is part of library, to space them outthe setw command should not be in the write member function). Below is an example of what you output should look like but is missing the middle section.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
question
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
Answers: 2
question
Computers and Technology, 24.06.2019 11:30
Why is body language an important factor in a business meeting
Answers: 1
You know the right answer?
Create a vector of MYStrings that is size 100 read each of the words from the file called "infile2.t...
Questions
question
Mathematics, 07.03.2020 03:44
question
Biology, 07.03.2020 03:44
Questions on the website: 13722359