C++ tutor free downloads






















Programs with multiple code files. Naming collisions and an introduction to namespaces. Introduction to the preprocessor. Header files. Header guards. How to design your first programs. Chapter 2 summary and quiz. Chapter 3. Syntax and semantic errors. The debugging process. A strategy for debugging.

Basic debugging tactics. More debugging tactics. Using an integrated debugger: Stepping. Using an integrated debugger: Running and breakpoints. Using an integrated debugger: Watching variables.

Using an integrated debugger: The call stack. Finding issues before they become problems. Chapter 3 summary and quiz. Chapter 4. Introduction to fundamental data types. Object sizes and the sizeof operator. Signed integers. Unsigned integers, and why to avoid them.

Introduction to scientific notation. Floating point numbers. Boolean values. Introduction to if statements. An introduction to std::string. Const, constexpr, and symbolic constants. Chapter 4 summary and quiz. Chapter 5. Operator precedence and associativity. Arithmetic operators. Modulus and Exponentiation. Comma and conditional operators. Relational operators and floating point comparisons.

Logical operators. Chapter 5 summary and quiz. Chapter O. Bit flags and bit manipulation via std::bitset. Bitwise operators. Bit manipulation with bitwise operators and bit masks.

Converting between binary and decimal. Chapter 6. Compound statements blocks. User-defined namespaces and the scope resolution operator. Local variables. Introduction to global variables. Variable shadowing name hiding. Internal linkage. External linkage. Why non-const global variables are evil. Sharing global constants across multiple files using inline variables. Static local variables. Scope, duration, and linkage summary. Using declarations and using directives.

Unnamed and inline namespaces. Chapter 6 summary and quiz. Chapter 7. Control flow introduction. If statements and blocks. Common if statement problems. Switch statement basics. Switch fallthrough and scoping.

Goto statements. Intro to loops and while statements. Do while statements. For statements. Break and continue. Halts exiting your program early. Introduction to testing your code. Code coverage. Detecting and handling errors. Chapter 7 summary and quiz. Chapter 8. Implicit type conversion coercion. Floating-point and integral promotion. Numeric conversions. Arithmetic conversions. Typedefs and type aliases.

Type deduction for objects using the auto keyword. Type deduction for functions. Introduction to function overloading. Function overload differentiation. Function overload resolution and ambiguous matches.

Default arguments. Function templates. Function template instantiation. Function templates with multiple template types. Chapter 8 summary and quiz. Chapter 9. Using a language reference. Enumerated types. Enum classes. Random number generation. Chapter 9 summary and quiz. Chapter Arrays Part I. Arrays Part II. Arrays and loops. Sorting an array using selection sort.

Multidimensional Arrays. C-style strings. Introduction to pointers. Null pointers. Pointers and arrays. Pointer arithmetic and array indexing. C-style string symbolic constants. Dynamic memory allocation with new and delete. Dynamically allocating arrays. Pointers and const.

Reference variables. References and const. Member selection with pointers and references. For-each loops. Void pointers. Pointers to pointers and dynamic multidimensional arrays. An introduction to std::array. An introduction to std::vector. Introduction to iterators. Introduction to standard library algorithms. Chapter 10 comprehensive quiz. Function parameters and arguments. Passing arguments by value. Passing arguments by reference. Passing arguments by address. Returning values by value, reference, and address.

Inline functions. To follow or participate in the development of dlib subscribe to dlib on github. Also be sure to read the how to contribute page if you intend to submit code to the project.

To quickly get started using dlib, follow these instructions to build dlib. Major Features Documentation Unlike a lot of open source projects, this one provides complete and precise documentation for every class and function.

There are also debugging modes that check the documented preconditions for functions. When this is enabled it will catch the vast majority of bugs caused by calling functions incorrectly or using objects in an incorrect manner. Lots of example programs are provided I consider the documentation to be the most important part of the library. So if you find anything that isn't documented, isn't clear, or has out of date documentation, tell me and I will fix it.

High Quality Portable Code Good unit test coverage. The ratio of unit test lines of code to library lines of code is about 1 to 4. No other packages are required to use the library. There is no installation or configure step needed before you can use the library.



0コメント

  • 1000 / 1000