Open blog from a year ago, after another and writing a summary of some things like that, but never push to the web. Now find themselves also share their notes to learn, a good way to communicate with others. Starting today, I will often push some learning notes to the blog, starting with C ++ started.
I probably started learning C ++ from a few months ago, and now just full of brush, and some sections during the brush about 3 times. But once it is not enough, so the record some point something similar for their own review with the wrong place, please advise. The following is written is being brush a second time.
Reference books: "21 days to learn through C ++" (US Siddhartha Rao), "C ++ primer plus", "C pointer"
Reference Course: "C ++ Programming" (Northwestern University), "C ++ Programming Language" (Tsinghua University), "C Programming Language" (Zhejiang University)
1, C ++ character set
A collection of C ++ syntax allows the use of a character called C ++ character set. C ++ 03 standard character set as follows:
① lowercase 26: abcdefghijklmnopqrstu vwxyz
② capital letters 26: ABCDEFGHIJKLMNOPQRSTU VWXYZ
③ numeric characters 10: 0123456789
④ Symbols 29: _ {} [] # () <>%:; * + - / ^ & | ~ =, \ " '.?!
⑤ whitespace 5: Space TAB CRLF CTRL + L CTRL + K
2, the identifier can only uppercase and lowercase letters, numbers, and underscores, the first character must be a letter or an underscore
3, the semicolon is an integral part of the statement, indicating the end of the statement. The end of the statement must use a semicolon.