C ++ primer Reading Notes 1

Source: Internet
Author: User



I Love Tiananmen, Beijing


Sun rises on Tiananmen


Great leader Chairman Mao


Guide us forward


<P class = "msonormal" style = "margin: 0 cm 0 cm 0pt"> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' "> note range: introduction and </span> <SPAN lang = "en" style = "font-size: 15pt"> 1.1 </span> <span style = "font-size:
15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> section </span> <SPAN lang =" en "style =" font-size: 15pt "> <? XML: namespace prefix = o ns = "urn: Schemas-Microsoft-com: Office: office"/> <O: P> </O: p> </span> </P> <p
Class = "msonormal" style = "margin: 0 cm 0 cm 0pt"> <SPAN lang = "en" style = "font-size: 15pt"> <O: P> & nbsp; </O: P> </span> </P> <P class = "msonormal" style = "margin: 0 cm 0 cm 0pt"> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family:
'Times new Roman '"> due to my previous reading habits, I held a slight attitude towards the beginning of this book. I think it is just a nonsense like the opening remarks. It turns out that I am wrong. In less than four pages. The author points out several incorrect ideas before reading this book, </span> <SPAN lang = "en" style = "font-size: 15pt "> <O: P> </span> </P> <P class =" msonormal "style =" margin: 0 cm 0 cm 0pt "> <span style =" font-size:
15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' "> 1: for </span> <SPAN lang = "en" style = "font-size: 15pt"> OOP </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman ';
MSO-Hansi-font-family: 'times new Roman '">, here I have to point out that encapsulation is used as </span> <SPAN lang = "en" style = "font-size: 15pt "> OOP </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; one of the unique characteristics of MSO-Hansi-font-family: 'times new Roman '> makes many people </span> <Span
Lang = "en" style = "font-size: 15pt"> (</span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> include mE </span> <SPAN lang =" en "style =" font-size: 15pt ">) </span> <span style = "font-size: 15pt;
Font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> indicates that a </span> <SPAN lang =" en "style =" font-size: 15pt "> class </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family:
'Times new Roman '"> enter </span> <SPAN lang =" en "style =" font-size: 15pt "> OOP </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> This Book clearly states that data encapsulation is only characteristic of objects. Yes </span> <SPAN lang = "en"
Style = "font-size: 15pt"> ADT </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' "> result, the design method is based on objects (</span> <SPAN lang = "en" style = "font-size: 15pt"> Object Based </span> <Span
Style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '">), no </span> <SPAN lang =" en "style =" font-size: 15pt "> inheritance </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family:
'Times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> mechanism and </span> <SPAN lang =" en "style =" font-size: 15pt "> dynamic binding </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new
The expansion of Roman '"> (dynamic binding) cannot be mentioned at all </span> <SPAN lang =" en "style =" font-size: 15pt "> OOP </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '">. </Span> <SPAN lang = "en" style = "font-size: 15pt"> <O: P> </span> </P>
<P class = "msonormal" style = "margin: 0 cm 0 cm 0pt"> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' "> second: for </span> <SPAN lang = "en" style = "font-size: 15pt"> C ++ </span> <span style = "font-size:
15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' ">. </Span> <SPAN lang = "en" style = "font-size: 15pt"> C ++ </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman ';
MSO-Hansi-font-family: 'times new Roman '"> is a language that integrates multiple design methods. We use it as a </span> <SPAN lang = "en" style = "font-size: 15pt "> OOP </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> language to learn </span> <Span
Lang = "en" style = "font-size: 15pt"> C ++ </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> it is understood as a class </span> <SPAN lang =" en "style =" font-size: 15pt "> C </span> <span style =" font-size:
15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' ">, I personally think that a serious problem caused by this incorrect opinion is that we bring </span> <SPAN lang = "en" style = "font-size: 15pt "> C </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family:
'Times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> to learn </span> <SPAN lang =" en "style =" font-size: 15pt "> C ++ </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' "> so that we use </span> <Span
Lang = "en" style = "font-size: 15pt"> C ++ </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' "> things. For example, </span> <SPAN lang = "en" style = "font-size: 15pt"> class </span> <span style = "font-size:
15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' ">. </Span> <SPAN lang = "en" style = "font-size: 15pt"> I/O </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family:
'Times new Roman '"> stream, but our idea is still </span> <SPAN lang =" en "style =" font-size: 15pt "> C </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '">, which makes it unacceptable </span> <SPAN lang =" en "style =" font-size:
15pt "> OOP </span> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman '"> and other design methods; this makes me think that learning </span> <SPAN lang = "en" style = "font-size: 15pt "> C ++ </span> <span style =" font-size: 15pt; font-family:
; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' ">, not Required </span> <SPAN lang = "en" style = "font-size: 15pt"> C </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family:
'Times new Roman '"> the true and rational views are more convinced. </span> <SPAN lang =" en "style =" font-size: 15pt "> <O: p> </O: P> </span> </P> <P class = "msonormal" style = "margin: 0 cm 0 cm 0pt "> <span style =" font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family:
'Times new Roman '"> 3: understanding of programming habits. In </span> <SPAN lang = "en" style = "font-size: 15pt"> 1.1 </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: the author raises a question in the 'times new Roman '> section. Instead of "</span> <Span
Lang = "en" style = "font-size: 15pt"> Hello World </span> <span style = "font-size: 15pt; font-family:; MSO-ascii-font-family: 'times new Roman '; MSO-Hansi-font-family: 'times new Roman' ">. As a matter of fact, I have always opposed the habit of learning a language. Just like this book, I start with thinking and face any problem with a engineering attitude, here, the author puts forward the idea of separation, governance, and refinement. This benefit is immeasurable for beginners who have not yet developed bad habits. </Span> <Span
Lang = "en" style = "font-size: 15pt"> <span style = "MSO-tab-count: 1"> & nbsp; </span>. <O: P> </span> </P> <p> & nbsp; </P>

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.