Beginner's knowledge of C + +

Source: Internet
Author: User

Grey: Perhaps it is the fate of this, the end of the senior year in I think I have a strong interest in physics when I was resolutely a black and white bear pit to the software of this profession.

Black: First contact with C + +, it really does not adapt, because a hardware has a passion for the youth suddenly came to a soft place, but also to face their own very inferior English, is indeed some of the inadequacy. In fact, in the big environment in Jiangsu, the Physics college entrance examination only a B + students are actually not good, or completely can be said to be no good. So I decided to embark on this road with a passion for foreign life and a second interest in the field of software.

White: The only tadpoles in the four group of friends to learn the medicine, and a deer and black bear have chosen ITCSC. When asked why I chose the software engineering, the black and white bear smiled, because he did not choose this major in a book, and I can choose in two. Freshman time is really mundane, in the Regimental regiment with all kinds of people dealing with, some tired. Do the table (Word,excle and some other commonly used office software, perhaps Hubei local did not put the computer course into the daily study, which makes my foundation relative to the majority of the school students come a little better. I bought C++primer as a starting point for learning, under the black and white Bear's continued digging hole. The same thing is still school things can not be, winter vacation back with the ego 18-year-old sister, resulting in a serious delay in their study plan. But that is how, with the encouragement of my best friend, I have to use the time of night to chew on books.

Green: Let's talk about how I've been learning C + + for so many days.

1. Start taking notes, do about 30 pages found not much results, but found that more time to compile, repeated, repeatedly to hit the keyboard, to become familiar with the meaning of each symbol, so that the effect will be slightly better learning.

2. For a C + + program, the approximate framework is the library that include<> contains, and the int main () must be part of it. A code that is contained by {}.

3. For the while and if for, they only execute the next function and run multiple functions sequentially and need to add them again {}

4.= represents an assignment, = = means that a fairly large operator is often prone to error at first.

5./* * * Paragraph comment//Line comment

6. The null type should not be a specific value. The arithmetic type contains characters, integers, booleans, and floating-point numbers.

The type of calculation is divided into two types: integral type (including character and Boolean type) floating point type

The value of bool is true and false; char 8 bit; int 16 bit; long32 bit; Longlong is equivalent to int64.

(int graduated now, so everyone directly ignore long, so see the range of int or (±65536), you can fan death, or the book to Burn.) -by black and White Bear) 7. The minimum addressable memory block is called "byte"; the stored base unit is called "word". float and double have 7 and 16 significant digits respectively. (32bite,64bite) 8. Except for Boolean and extended character types, other integral types can be divided into signed and unsigned. 9. A struct is a simplified class, and a class is an extended structure. Define your own data structure by defining a class.

Beginner's knowledge of C + +

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.