C ++ Study Notes _ 01 C ++ Primer chapter 1, _ 01 primer

Source: Internet
Author: User

C ++ Study Notes _ 01 C ++ Primer chapter 1, _ 01 primer

Key Concept: Types
Types are one of the most fundamental concepts in programming and
Concept that we will come back to over and over in this Primer. A type
Defines both the contents of a data element and the operations that are
Possible on those data.
The data our programs manipulate are stored in variables and every
Variable has a type. When the type of a variable named v is T, we often say
That "v has type T" or, interchangeably, that "v is a T ."

 

Key Concept: Type

Type is a very important concept in the program, and this concept will be throughout the book.

The data type not only determines the content that a data element (object) should contain, but also the operations that can be performed on the data.

(PS: Java is developed from C ++, so inTypeThis concept is very similar)

 

Data Processed by our program is stored in variables, and each variable has its own type. When we set a variable type called v to T,

We can say that T is the type of v variable, or, conversely, v is the type of T.

 

Most of the examples in this book useIostreamLibrary. Fundamental to
Iostream library are two types namedIstreamAndOstream, Which represent input
And output streams, respectively. A stream is a sequence of characters read from or
Written to an IO device.

Most examples in this book useIostreamLibrary, the two most important types of iostream library areIstreamAndOstream

They represent the input stream and the output stream respectively. A stream is a sequence of characters that are read or written from an IO Device.

 

Computer English

0001 transaction

0002 terminate termination

0003 concept concepts and ideas

0004 fundamental basics

0005 special; detailed; exclusive; picky

0006 collegou colleagues

0007 concentrate focus on Concentration

0008 Naming Convention command rules

0009 suffix (file name suffix etc .)

0010 prompt adj. agile; rapid; v. prompt; Lead n. Incentive; prompt

0011 omitted and deleted

 

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.