1. Concepts
Scott Meyers gave an example in more effective C ++. Do you still remember this? When you are still at school, your parents want you not to watch TV, but to review your lessons, so you keep yourself in the room and make a look at your homework, in fact, you are doing other things, such as writing love letters to a girl in the class. Once your parents come out and check whether you are reviewing in your room, you can really pick up textboo
floating point number. Obviously, we should call somefunc of the float version. The most strange thing is that without this call, the entire program compilation connection is completely normal. It can be seen that this overload function is legal ."
"Well, yes, it is indeed legal, but it does not mean it is legal. Zero. Read this section and read the article "50 commandments" by the Prophet Meyers. (Note: it refers to the book "Objective C ++ 2/E) in
++ Chinese Version --- C ++ --- Stanley B. Lippman
Valid tive C ++ Chinese Version 2nd Edition ----- C ++ ------ Scott Meyers
More effective tive C ++ Chinese Version ---- C ++ ------ Scott Meyers
C ++ programming ideology (version 2nd) vol. 1st: Standard C ++ guidance -------- Bruce Eckel
C ++ programming ideology (version 2nd) vol. 2nd: practical programming technology -------- Bruce Eckel
C ++ programmi
Version 2nd Edition ----- C ++ ------ Scott Meyers
More effective tive C ++ Chinese Version ---- C ++ ------ Scott Meyers
C ++ programming ideology (version 2nd) vol. 1st: Standard C ++ guidance -------- Bruce Eckel
C ++ programming ideology (version 2nd) vol. 2nd: practical programming technology -------- Bruce Eckel
C ++ programming ---------------------------- tan haoqiang
C ++ Programming Tutorial (ver
1. Code Daquan (version 2nd) Author: [us] Steve Mike Cornell
2. programmer cultivation Author: Andrew Hunt/David Thomas
3. Construction and interpretation of computer programs by Harold Abelson/Gerald Jay Sussman/Julie Sussman
4. C programming language written by knihan
5. Introduction to algorithms: [us] Thomas H. Cormen/Charles E. Leiserson/Ronald L. Rivest/Clifford Stein
7. Mythical man-month Author: Fred Brooks
8. Design Patterns Author: [us] Erich Gamma/Richard Helm/Ralph Johnson/John Vliss
.
]Beware of overflow or underflow of variables, and the subscript of the array is out of bounds. 2.
[11-3-6 is recommended.
]Be careful if you forget to write the error handling program. Be careful if the error handling program itself is incorrect. 2.
[11-3-7 is recommended.
]Beware of file I/O errors. 2.
[11-3-8 is recommended.
]Avoid writing highly skillful code. 2.
[11-3-9 is recommended.
]Do not design a comprehensive and flexible data structure. 2.
[11-3-10 is recommended.
]If the original
Abstract:We often see that JavaScript, CSS, and image files are differentiated by file type in Web applications. This habit is still competent in the past web development scenarios. However, with the development of Web apps, JavaScript applications become more and more complex, and developers need a clearer and more efficient file structure.
Cliff Meyers is a front-end engineer familiar with HTML5, JavaScript, and J2EE development. During the developm
++"
In-depth exploration of the C ++ object model --- C ++ ---- Stanley B. Lippman
Essential C ++ Chinese Version --- C ++ --- Stanley B. Lippman
Valid tive C ++ Chinese Version 2nd Edition ----- C ++ ------ Scott Meyers
More effective tive C ++ Chinese Version ---- C ++ ------ Scott Meyers
C ++ programming ideology (version 2nd) vol. 1st: Standard C ++ guidance -------- Bruce Eckel
C ++ programming ideolo
1. Concepts
Scott Meyers gave an example in more effective C ++. Do you still remember this? When you are still at school, your parents want you not to watch TV, but to review your lessons, so you keep yourself in the room and make a look at your homework, in fact, you are doing other things, such as writing love letters to a girl in the class. Once your parents come out and check whether you are reviewing in your room, you can really pick up textbook
good reference for us. In view of this, I recommend the following books for you to choose from, which can benefit you from both robustness and efficiency (of course, they cover much more than Exception Handling J ).
Scott Meyers, valid tive C ++: 50 Specific Ways to ImproveYourPrograms and Design (2nd Edition)
Scott Meyers, More than tive C ++: 35 New Ways to ImproveYourPrograms and Designs
English vers
think about it: when the vector container is expanding.With the move semantics, the objects inside the vector are moved from the old address to the new address without any difficulty.Return value problem with Rvalue reference:With an rvalue reference, the reader may write the following code:test Fun () { Test t; ... return Std::move (t);} int main () { Test tt = Fun ();//And the next, which is the right one? Test tt = Fun ();//And who is right? return 0;}Undoubtedly, in the m
exceptions is resource management.
There is another headache in the exception: resource management. bjarne stroustrup also clearly states that the core of the exception design is actually resource management, because if a program opens a file, the program throws an exception during running, while the code for closing the file is after the program throws the Exception Code, the file cannot be closed normally.
At this time, RAII was born. I am also surprised to see that RAII was born due to exce
for the attacker? Return 0 ;}
Undoubtedly, in the main function, you also need to consider whether the tt object is of the Test type or the Test type. In fact, the big mistake has long been cast in the fun function.
The returned result is only a reference. What about it? The real body has been destroyed in the fun function. As early as Objective C ++, Meyers warned against returning a reference in the function. As menti
If you want to learn C ++, you do not have to learn C, because C ++ and C are actually two languages, only C ++ is compatible with C, we should not associate C ++ with C. to learn C ++, you must take it as a new language. let me talk about the recommended route from the expert who does not understand the final expert:
1. Written in "C ++ Primer", Lippman, classic, C ++ entry-level book. After reading this book, the basic syntax is passed and some skills are mastered.
Reading...
2. written by Bja
is not very comprehensive, not suitable for system learning, the reader needs a certain degree of programming knowledge.Difficulty: ★☆Quality: ★★★★Breadth: ★★★☆Depth: ★Sex Price: ★★☆4."Original title" Effective C + +, third Edition"Former publishing house" Addison Wesley/pearson"Author" (US) Scott Meyers"Publishing House" electronic industry publishing house"Original title" more effective C + +: New Ways to Improve Your Programs and Designs"Former pu
"Effective C + +""Original title" Effective C + +, third Edition"Former publishing house" Addison Wesley/pearson"Author" (US) Scott Meyers"Publishing House" electronic industry publishing house"More effective C + +""Original title" more effective C + +: New Ways to Improve Your Programs and Designs"Former publishing house" Addison Wesley/pearson"Author" (US) Scott Meyers"Book name" C + + Design new Thinking
Article 01: Treat C + + as a language federalC + + is a multi-paradigm programming language, one that supports both process-oriented, object-oriented, functional, generic, and meta-programming forms.Treat C + + as a few sub-languages:Traditional C: Chunks, statements, pre-processors, built-in data types, arrays, pointers. No templates, no exceptions, no overloads.Object-oriented C + +: classes (including constructor destructors), encapsulation, inheritance, polymorphism, virtual functions.Templa
C + + book recommendationsC + + language:1, "Essential C + +": Stanley B.lipman. offshoot, focus on the core, light and short, with exercises and answers, suitable for beginners. 2, "theC + + programming Language":Bjarne Stroustrup. Technical Authority, with the word deep, profound thinking. The C + + encyclopedia represents. 3, "C + + Primer": Stanley B.lipman and Josee Lajoie. Pan/Zhang Li translation. The book fair ten years does not fall, the content is not exhaustive, known as C + + b
C + + language:1, "Essential C + +": Stanley B.lipman.Next branch temporary, main core, light and short, with exercises and answers, suitable for beginners.2, "the C + + programming Language": Bjarne Stroustrup.Technical authority, with the word deep, profound thinking. The C + + encyclopedia represents.3, "C + + Primer": Stanley B.lipman and Josee Lajoie. Pan/Zhang Li translation.The book fair ten years does not fall, the content is not exhaustive, known as C + + best textbook. The C + + encycl
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.