Accelerated C + +: Programming practice with examples-practice answers (10th)

Source: Internet
Author: User

my github Address: Https://github.com/CNhoward/Accerlerated-C-plus-plus

10-0. Compile, execute, and test the programs in this chapter.

Ans: See GitHub.

10-1. Rewrite the student-grading program from§9.6/166 to generate letter grades.

Ans: See GitHub.

10-2. Rewrite the median function from§8.1.1/140 So, we can call it with either a vector or a built-in array. The function should allow containers of any arithmetic type.

Ans: See GitHub.

10-3. Write a test program to verify that the median function operates correctly. Ensure that calling does the "the Order of the elements in the median container.

Ans: See GitHub.

10-4. Write A class that implements a that list holds string s.

Ans: See GitHub. The implementation here also combines the requirements of 10-5.

10-5. Write a bidirectional iterator for your String_list class.

Ans: See GitHub.

10-6. Test the class by rewriting the split function to put it output into a String_list .

Ans: See GitHub.

Accelerated C + +: Programming practice with examples-practice answers (10th)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.