Thinking in C ++ reading log (2)

Source: Internet
Author: User
Septem

Chapter 2 object creation and use

The second chapter focuses on some basic knowledge and syntax of C ++, but we can still learn new things from the book. Try to reduce the length of the article this time. It can be written in two aspects: 1. Recommended knowledge points, covering the essence of this chapter in terms of breadth; 2. Further research on a specific knowledge point, in-depth exploration.

 

1. Classic recommendation (Guide)

1) interpreter and translator-p28

When I first learned C ++, I always confused these two items with the two compile and build buttons of VC and then mixed them with the "connector! It's a pot of sofa dishes! After reading this part of the content, we gradually become clear and have a better understanding of the concept of compilation.

2) one note P31

The statement of int fun2 (); has different meanings in C and C ++. Didn't you expect it?

3) The common format of a comment is

//: And ///:~ .

4) string and library functions-P40

Vector container p42

These two points are the most valuable knowledge points in this chapter. We recommend that you read them carefully. I will discuss them in depth later.

 

2. In-depth discussion (my thoughts)

Due to the limited length, we have to introduce a program that I made with vector and string. 

Txt file encryption program.

"Encryption. cpp" file is as follows. My source code and application I have been uploaded to the network, you can go to the next network download (Change .mp3to .rar can) http://fm132.img.xiaonei.com/tribe/20070803/21/45/A871649442931OXC.mp3

 

 

I hope to hear from you. You are also welcome to share your program with me! Let's share it! Let's share our thoughts in c ++!

I would like to express my special thanks to Dai juntong. He has made many constructive suggestions for this program and made many substantial improvements in the program exception handling and string allocation space adjustment.Let's make progress together!

Related Article

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.