목록C++ (102)
음악, 삶, 개발
Lee : 나중에 하겠음. 소개 4.1 Fundamentals 4.1.1 Basic Concepts 4.1.2 Precedence and Associativity 4.1.3 Order of Evaluation 4.2 Arithmetic Operators 4.3 Logical and Relational Operators 4.4 Assignment Operators 4.5 Increment and Decrement Operators 4.6 The Member Access Operators 4.7 The Conditional Operator 4.8 The Bitwise Operators 4.9 The sizeof Operator 4.10 Comma Operator 4.11 Type Conversions 4.1..
In.0: Don’t panic! P.1: Express ideas directly in code P.2: Write in ISO Standard C++ P.3: Express intent P.4: Ideally, a program should be statically type safe P.5: Prefer compile-time checking to run-time checking P.6: What cannot be checked at compile time should be checkable at run time P.7: Catch run-time errors early P.8: Don’t leak any resources P.9: Don’t waste time or space P.10: Prefer..
원문 : https://isocpp.org/wiki/faq What is C++? Is C++ a practical language? Is C++ a perfect language? What is the zero-overhead principle? What’s so great about classes? What’s the big deal with OO? What’s the big deal with generic programming? What is multiparadigm programming? Is C++ better than Java? (or C#, C, Objective-C, JavaScript, Ruby, Perl, PHP, Haskell, FORTRAN, Pascal, Ada, Smalltalk..
Container Item 1. Choose your containers with care. Item 2. Beware the illusion of container-independent code. Item 3. Make copying cheap and correct for objects in containers. Item 4. Call empty instead of checking size() against zero. Item 5. Prefer range member functions to their single-element counterparts. Item 6. Be alert for C++'s most vexing parse. Item 7. When using containers of newed ..
From the Publisher Acknowledgments Introduction 1. Deducing Types Item 1: Understand template type deduction. Item 2: Understand auto type deduction. Item 3: Understand decltype. Item 4: Know how to view deduced types. 2. auto Item 5: Prefer auto to explicit type declarations. Item 6: Use the explicitly typed initializer idiom when auto deduces undesired types. 3. Moving to Modern C++ Item 7: Di..
Acknowledgments Introduction Basics Item 1: Distinguish between pointers and references. Item 2: Prefer C++-style casts. Item 3: Never treat arrays polymorphically. Item 4: Avoid gratuitous default constructors. Operators Item 5: Be wary of user-defined conversion functions. Item 6: Distinguish between prefix and postfix forms of increment and decrement operators. Item 7: Never overload &&, ||, ..
Preface Acknowledgments Introduction Chapter 1 : Accustoming Yourself to C++ Item 1: View C++ as a federation of languages. Item 2: Prefer consts, enums, and inlines to #defines. Item 3: Use const whenever possible. Item 4: Make sure that objects are initialized before they’re used. Chapter 2: Constructors, Destructors, and Assignment Operators Item 5: Know what functions C++ silently writes and..
참고자료 Const Correctness
24807 : Why is processing a sorted array faster than processing an unsorted array? 9086 : What is the ??->??operator in C++? 4242 : The Definitive C++ Book Guide and List 3338 : What are the differences between a pointer variable and a reference variable in C++? 3026 : How do I iterate over the words of a string? 2989 : What does the explicit keyword mean? 2719 : Why is ?쐕sing namespace std;??co..
참고자료 Programiz : C++ Functions Google C++ Style Guide : Functions C++ Core Guidelines : Functions (영문) C++ Core Guidelines : 함수 (한글) Stackoverflow : Should I return const objects? Stackoverflow : Purpose of returning by const value? Stackoverflow : What are the use cases for having a function return by const value for non-builtin type? Stackoverflow : Is the practice of returning a C++ reference..