Moderncpp

Moderncpp смотреть последние обновления за сегодня на .

A Tour of Modern C++

135798
1836
59
01:05:46
06.07.2015

The recording of our July 2nd webinar, A Tour of Modern C, with Dmitri Nesteruk. Demo project: 🤍 Agenda: 01:02 - Uniform initialization, initializer lists. 09:47 - Auto & decltype. 17:42 - Override & final. 22:03 - Lambdas. 28:10 - Strongly typed enumerations. 30:43 - Range-based 'for' loops. 34:05 - Static asserts. 37:33 - Type traits. 38:53 - Variadic templates. 45:04 - Smart pointers. 54:47 - rvalue references. 01:01:08 - Q&A Learn more about C tools from JetBrains at 🤍 Category: Webinars

C++ Weekly - Ep 348 - A Modern C++ Quick Start Tutorial - 90 Topics in 20 Minutes

15307
537
63
00:20:47
31.10.2022

☟☟ Important conference, book and swag info in description ☟☟ Episode notes: 🤍 T-SHIRTS AVAILABLE! ► The best C T-Shirts anywhere! 🤍 WANT MORE JASON? ► My Training Classes: 🤍 ► Follow me on twitter: 🤍 SUPPORT THE CHANNEL ► Patreon: 🤍 ► Github Sponsors: 🤍 ► Paypal Donation: 🤍 GET INVOLVED ► Video Idea List: 🤍 JASON'S BOOKS ► C Best Practices Amazon Paperback: 🤍 Leanpub Ebook: 🤍 JASON'S PUZZLE BOOKS ► Object Lifetime Puzzlers Book 1 Amazon Paperback: 🤍 Leanpub Ebook: 🤍 ► Object Lifetime Puzzlers Book 2 Amazon Paperback: 🤍 Leanpub Ebook: 🤍 ► Object Lifetime Puzzlers Book 3 Leanpub Ebook: 🤍 ► Copy and Reference Puzzlers Book 1 Amazon Paperback: 🤍 Leanpub Ebook: 🤍 ► Copy and Reference Puzzlers Book 2 Amazon Paperback: 🤍 Leanpub Ebook: 🤍 ► Copy and Reference Puzzlers Book 3 Leanpub Ebook: 🤍 ► OpCode Puzzlers Book 1 Amazon Paperback: 🤍 Leanpub Ebook: 🤍 RECOMMENDED BOOKS ► Bjarne Stroustrup's A Tour of C (now with C20/23!): 🤍 AWESOME PROJECTS ► The C Starter Project - Gets you started with Best Practices Quickly - 🤍 ► C Best Practices Forkable Coding Standards - 🤍 O'Reilly VIDEOS ► Inheritance and Polymorphism in C - 🤍 ► Learning C Best Practices - 🤍

Introduction to constexpr | Modern Cpp Series

727
60
18
00:10:56
08.09.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I will show you how to use constexpr to 'suggest' expressions that could be evaluated at compile-time. This can save your performance by evaluating results at compile-time, reduce code size, and even help you catch bugs at compile-time! constexpr does have a few quirks however, meaning that you'll have to be careful with floating point. A more detailed cppcon talk dedicated and inspiring this video can be found here 🤍 ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Use -Weffc++ with g++ to write effective modern C++ | Modern Cpp Series

671
53
15
00:02:45
11.08.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you a cool trick to write better C code with the -Weffc flag in g. This allows the compiler to run a static analysis on your C code, and suggest fixes based on Scott Meyers Effective C texts. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

CppCon 2017: Bjarne Stroustrup “Learning and Teaching Modern C++”

263612
3976
187
01:38:41
26.09.2017

🤍 — Presentation Slides, PDFs, Source Code and other presenter materials are available at: 🤍 — We – attendees at CppCon – are all teachers. Some teach for a living; many occasionally teach a course or give a lecture; essentially all give advice about how to learn C or how to use C. The communities we address are incredibly diverse. What do we teach, and why? Who do we teach, and how? What is “modern C”? How do we avoid pushing our own mistakes onto innocent learners? Teaching C implies a view of what C is; there is no value-neutral teaching. What teaching tools and support do we need? Consider libraries, compiler support, and tools for learners. This talk asks a lot of questions and offers a few answers. Its aim is to start a discussion, so the Q&A will be relatively long. — Bjarne Stroustrup - Managing Director,, Morgan Stanley C: history, design, use, standardization, future; performance, reliability; software developer education; | distributed systems — Videos Filmed & Edited by Bash Films: 🤍 *-* Register Now For CppCon 2022: 🤍 *-*

Write secure code with assertions (assert and static_assert) | Modern Cpp Series

423
31
7
00:10:59
10.09.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I will show you one way to catch bugs at run-time, and one way to catch bugs at compile-time. The assert statement (from C) is available to us in C. Assertions serve as contracts of thing that must absolutely be true, and if they're not, the safest thing to do is for our program to terminate. In modern C we have available to use static_assert which can check boolean-constexpr expressions to see if they pass the test, and catching bugs at compile-time is often much easier on us in the long run! ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

auto in Modern C++ | Modern Cpp Series

390
30
8
00:10:20
14.09.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you one of the more exciting features that was initially added to C 11, the repurposing of 'auto'. 'auto' is a placeholder for a type specifier, and allows the compiler to deduce the type for you. This can be handy for cleaning up your code, though I will have a warning that it does not always do what you may expect, so you do have to be a little careful with auto. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

[Info] A quick tour of the different versions of C++ | Modern Cpp Series

1942
72
4
00:04:02
24.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I clarify a bit what 'modern c' means. What is important to understand is that C is a language (just like a spoken language) evolve over time with new featuresand this is a good thing! A good way to see the features of iterations of the c language is to take a look at the cppreference website. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Easing into Modern C++ (7 Features of C++ You Can Adopt Today)

85120
2091
78
00:05:13
19.08.2018

Watch this talk to learn about 7 features of C you can adopt today. No downside. All upside. Can be applied piecemeal. EVENT: CNow 2018 SPEAKER: Ben Deane PERMISSIONS: Original video was published with the Creative Commons Attribution license (reuse allowed). CREDITS: Original video source: 🤍 Additional material for C learners: 🤍 Murach's C Programming 🤍 C in One Hour a Day, Sams Teach Yourself (8th Edition) 🤍 A Tour of C (2nd Edition) (C In-Depth Series) 🤍 C# Programming Illustrated Guide For Beginners & Intermediates: The Future Is Here! Learning By Doing Approach

[Setup Video] Linux Setting up C++ | Modern Cpp Series

706
24
5
00:04:54
22.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I am going to teach you how to get the g (and the directions are the same for clang) compiler. I recommend going through your package manager if you're just getting started. For those extra curious, here's a related video on how to build gcc from scratch: 🤍 ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

[Setup Video] Setting up C++ on Mac (Shown on Apple M1) | Modern Cpp Series

19047
256
25
00:05:44
22.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you how to setup clang on the command line for C development on my Apple Mac with M1 processor. Note the instructions will work on Intel-based Macs as well. I also go a little further and show you how to obtain g on brew if you'd prefer that as an option, or perhaps if you prefer using IDEs, I'll show you how to quickly compile a 'hello world' application within XCode. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Revisiting std::unique_ptr and Custom Deleters | Modern Cpp Series

409
31
12
00:07:29
19.08.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you what a custom deleter is for unique_ptr. It's more so important in this lesson that you know it exists and is available for you. It is particularly useful if you are working with legacy codebases and need to ensure a series of checks is made before reclaiming memory. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Generics in C++ 1 - Templates Introduction | Modern Cpp Series

761
46
19
00:11:16
18.07.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I introduce you to templates in C. Templates are a powerful feature in C, and they allow us to avoid 'copy and paste' when we need to implement similar functionality on different data types. I'd like you however to think of templates as a tool for helping compilers generate the necessary code that we need. In this lesson we'll do a brief motivation of just one of the types of templates C provides, and then revisit some more features of generic programming (i.e. called templates in C) in future lessons. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Classes Part 22 - Curly brace versus parenthesis and std::initializer_list | Modern cpp Series

979
56
21
00:15:53
08.05.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you three different ways to initialize a variable (the fourth would be to perhaps not initialize the variable which is bad practice). In C there is a difference between using curly braces and parenthesis. Parenthesis will call the constructor and setup any arguments. Curly braces may also call the right constructor, but will also prevent narrowing (i.e. conversion of types). In addition, using curly braces to initialize an object will use a constructor with an std::initializer_list if one is defined. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Condition Variable in Modern cpp and unique lock | Introduction to Concurrency in C++

2583
82
7
00:18:51
20.11.2021

►Full Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Git Repo: 🤍 ►Lesson Description: In this lesson I teach you about how to use a condition_variable in C. This is a relatively old concept that is useful for making sure that cpu time is not wasted attempting to constantly 'try' to acquire a lock. 00:00 Synchronization of threads with locks 1:20 Wasted cpu cycles waiting 1:58 Introduction to condition variable 3:20 What is needed for condition variables 4:21 Worker and reporter thread idea 5:00 Implementation of condition variable 5:45 Setting up condition variable 6:30 Setting up our 2 threads 7:20 Setting up worker thread 8:07 Using a unique_lock 9:20 Doing work in reporter thread and updating condition 10:50 notify with condition variable 11:58 Setting up reporting thread 12:46 Condition variable wait 13:20 wait blocks a thread 14:04 notify wakes up a thread 14:34 Syntax fixes 15:08 Logic fixes 15:40 Successful execution of program 16:10 Explanation again of what we have done ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Circle, Carbon, Cppfront, Val, DLang oh my! (Language Evolution) | Modern Cpp Series

1788
77
28
00:14:38
18.09.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I talk about some of the evolution and exciting experiments going on around the C ecosystem. It's too early to know how some of these are going to develop, but worth knowing they exist and seeing how they might change the direction of the C language. C 23 🤍 Circle Lang 🤍 Circle Talk from C Now 2022 🤍 Carbon 🤍 Carbon C North Talk 🤍 Cpp Front 🤍 Cpp Front talk (may get updated later) 🤍 Val Language 🤍 C Now talk 🤍 DLang interface to C 🤍 ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Functions in C++ with const parameters and why (bonus std::is_const) | Modern Cpp Series

583
28
1
00:06:19
08.01.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson we learn about a second use for 'const', and that is qualifying the parameters of our functions. This ensures that data passed into our function cannot be mutated, which is something we may want to protect against when using pass-by-reference, to ensure we can efficiently pass data into a function, without the worry that it will be modified. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

C++ Workflow in a Compiled Language | Modern Cpp Series

1101
45
7
00:05:07
21.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I want to bring to attention to programmers coming from scripting languages (e.g. Javascript, Python, Ruby, etc.) the idea of compilation. We'll talk more in-depth in the future about this, but it's important that you know that every time we make a change to our source code, we need to rebuild our application (i.e. compile to machine code), before executing our program to observe the changes made. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

std::weak_ptr - A non-owning smart pointer | Modern Cpp Series

703
50
8
00:13:08
02.03.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you how to use a std::weak_ptr. Weak pointers are probably the most strange of the 3 types of smart pointers introduce in modern C, in that they work with shared_ptr's. The idea is though, that the reference count is not increased, so that it is possible you can point to memory that has been freed. However, this can help solve some problems relating to simplifying ownership, breaking cycles, or 'more safely' being able to check for 'expired' memory. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Introduction to std::move in C++ | Modern Cpp Series

1369
78
6
00:10:03
19.02.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I am going to talk to introduce std::move and the idea of move semantics. Move semantics allows us in modern C to transfer ownership (i.e. steal a resource) from one object to another. This allows us to avoid copies when we truly want to transfer a resource. The implications of this, is that we can potentially increase performance, when we want to transfer ownership, and then avoid unnecessary copies. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Classes Part 30 - pIMPL (pointer to implementation) - More Stable APIs| Modern Cpp Series

775
65
14
00:12:41
12.06.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I talk about an important idiom that allows us to hide our implementation details in our classes. The pointer to implementation (pIMPL) idiom stores private data members and member functions in a class, while also limiting the pIMPL class's scope. This can be a way to create a more stable ABI for your applications, and even save compile times. The cost may be an additional level of indirection, and managing code in a .cpp file. In general, I would urge folks who have long lived codebases to consider this idiom. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

std::future and std::async in Modern cpp | Introduction to Concurrency in C++

3647
107
15
00:07:12
20.11.2021

►Full Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Git Repo: 🤍 ►Lesson Description: In this lesson I teach you std::async and the idea that it returns a future. We block on the futures result if we need to compute the result, and otherwise std::async is an easy way to launch threads. 00:00 Introduction to std::async 1:11 What is a future 2:02 Creating a std::async function 3:27 Retrieving result with get 4:00 What is the point of async? 5:29 Waiting on a futures result 6:00 Progress is made in background on a task ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

[Setup Video] Visual Studio Setup for C++ | Modern Cpp Series

939
29
10
00:09:32
23.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you how to get setup with Microsoft Visual Studio full Integrated Development Environment (IDE). I'll show you how to create a project from scratch, and how to run some C code so you can continue learning. I'll then take a little dive into some of the 'project settings' so you can control how your C projects are built. Finally, at the end, I'll show you how you can also debug your programs. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

lvalue, rvalue, lvalue references and a short introduction to rvalue references | Modern Cpp Series

1432
82
18
00:30:10
14.02.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I am going to talk about something that is not so much a 'language feature' but rather something that is part of the semantics of modern C. At the least, you should leave this lesson understanding what an 'lvalue' and 'rvalue' error means from your compiler. We'll also talk a bit about lvalue references (which you already know as int&), and then briefly introduce rvalue references. rvalue references will be further motivated, and we'll start to look at why they may be useful for performance in a later video. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

What is a pointer, dereferencing, and the point of pointers? | Modern Cpp Series

574
30
6
00:11:50
10.01.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson we introduce a data type known as a 'pointer'. Pointers store addresses in C to a specific data type (e.g. integer pointer, floating pointer, etc.). In order to retrieve the value from a pointer that is stored at an address, we 'dereference the pointer'. Note: The asterisk (or sometimes called 'star') is used in many places now. Pointers allow us to refer to the same piece of data, and thus 'share' the values, and while only having one actual update in one place in the program. Pointers will also allow us to build data structures. Link to a full video on pointers from start to finish: 🤍 ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Interface (.hpp) versus implementation (.cpp) files (and why they exist) | Modern Cpp Series

2386
95
10
00:18:37
08.03.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I discuss the difference between an interface (.h, .hxx, or .hpp) file in c versus an implementation file (.cpp or .cxx). Header files (.hpp) give you a high level overview of the programming interface you have in the library. The implementation file (.cpp) however, provides the implementation (i.e. the actual details and algorithms to get work done). In this lesson, we also discuss header guards (So you can include files safely), what happens when you include a file too many times (multiple definition error), and the purpose of why we separate our code (make project more easy to manage, and to speed up compilation). ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

const in C++ - The first use | Modern Cpp Series

660
42
6
00:06:59
27.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you how to make data 'read-only' (a.k.a immutable) by using the 'const' keyword built into the language. 'const' has several uses, but in this use we'll learn that we can make variables values unchangeable during the duration of the program. I'll also tease the idea of 'constexpr' for evaluating expressions at compile-time, and we'll revisit this idea later on. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Check Your Understanding: Dereferencing a pointer | Modern Cpp Series

408
14
5
00:06:25
14.01.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I am giving you a quick pop quiz to check your understanding on dereferencing and how pointers work. I also want to provide you a tip for drawing your pointers on paper/tablet/computer to help check your understanding. Link to a full video on pointers from start to finish: 🤍 ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

cppman | Modern Cpp Series

376
31
6
00:05:55
04.05.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you a cool tool to help you with quickly finding out information in C when you are on the road! ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series

412
41
13
00:12:50
29.05.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you the importance of how you lay out your member variables in your classes and structs. C Compilers align member variables to powers of 2, in order to make it easier to access fields. That said, this can cause waste depending on the order in which you list your member variables in classes. As a general guideline, you can list the larger member variables first, and then the smaller variables after to prevent internal fragmentation. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Raw Arrays and std::array in C++ | Modern Cpp Series

1136
43
11
00:14:09
29.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I teach you our first data structure in this series, the array! Arrays are very simple but frequently used data structures. They allow us to store a collection of data in a contiguous block of memory. In modern C we also have the std::array container, which provides additional power and error-checking mechanisms for our array. As a teaser, I also show you how to initialize an array using a loop, as well as with std::iota which lives in the numeric library.. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Lambda’s Part 3 - Capturing ‘this’ (Using lambda’s in member functions) | Modern cpp Series

174
20
7
00:08:35
01.12.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you how to capture 'this' when using lambda's within a member function of a class. We can capture by reference and by-value as before. One note is that some of the syntax for capturing by value using '=' has been deprecated in C20, so be sure to use *this explicitly when capturing by value. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel! ►Join our free community: 🤍

Generics in C++ 5 - Variadic arguments and Variadic Function Templates | Modern Cpp Series

1225
54
16
00:15:02
26.07.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson we are going to look at creating a function template with a variable number of arguments. We are going to create a function template using a parameter pack to have an arbitrary number of arguments. This has an advantage of being type safe and also avoids any run-time checks versus using va_args in the stdarg.h header. I'll show in this lesson an example of how to properly create and use a Sum function with variable arguments, and one thing to watch out for. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

A brief look at c++ code style guides | Modern Cpp series

588
36
5
00:05:49
06.09.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson we are going to do a very brief look at a few coding style guides. This lesson unfortunately is not going to have a single answer as to what the best style or coding standards are, but rather encourage you to follow one (or the one your team is going to use). Following good style is going to help your teammates help you, make it easier to read your code, and can in some cases help prevent bugs. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

[Advice] Making mistakes, make small changes when learning | Modern Cpp Series

632
30
3
00:03:42
24.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I provide just a few key pieces of advice and some programming habits that I've tried to reinforce within myself over my programming career, especially when learning something new! Some key pieces of advice are shared in this video. 1.) Start fixing errors from the first error or warning from the quote. 2.) Make small changes to your code, save, recompile, and then run your program. 3.) Treat warnings as errors with -Werror compiler flag ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

C++ Block Scope | Modern Cpp Series

752
34
18
00:08:34
28.12.2021

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I teach you that the curly braces {}'s that we are using actually define the 'block scope' of our variables. Utilizing scope helps our machines be more efficient in how they allocate memory, but from a pragmatic perspective they allow us to reuse symbol (i.e. variable) names. In this lesson, you'll also learn that having 'no scope' is what creates a global variable, and they tend to NOT be good for design in our programs. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Function pointers, typedef a function pointer, and std::function | Modern Cpp Series

1617
74
19
00:10:29
30.01.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show how to create a variable that can store a function addressthis is called a function pointer. One common use of function pointers is to be used for 'callback' functions that can be reassigned at run-time to change the behavior associated with some object (e.g. in a graphical user interface when you press a button). Later on in the video I'll show a few easier ways to work with function pointers, including using a 'typedef' (which you'll often see in C codebases), as well as the more modern std::function, which uses a much more forgiving syntax. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

C++ Casting - Part 1 - Types, conversions, and C-style casts | Modern Cpp Series

419
35
6
00:13:03
24.09.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I talk about one of the best features of C design the fact that it is a statically typed language! This itself can help build safer and more scalable software. That said, on occasion, we need to treat data as different types in order to evaluate correctly our results. One thing we have to take care of is the 'runtime cost' of the cast, as well as if we are going to lose precision as well! ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

C++ Classes part 1 - Introduction to C++ class | Modern Cpp Series

983
45
9
00:29:09
12.03.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I introduce the 'class' keyword and some ideas in object-oriented programming. Object oriented programming (OOP) allows us to think and model our software in terms of objects that closely reflect how we often think in the real world. Object oriented programming can also provide benefits such as 'information hiding' that is not available (easily) in other languages like C that do not support by default object oriented programming. In this lesson I'll also show you how to create a new user defined type 'Student' and how to separate out the interface from the implementation. We'll discuss the class scope operator (::) so you can understand how member functions get associated with a class when in the implementation file. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

std::shared_ptr - A reference counted smart pointer | Modern Cpp Series

1042
55
6
00:14:29
28.02.2022

►Full C Series Playlist: 🤍 ►Find full courses on: 🤍 ►Join as Member to Support the channel: 🤍 ►Lesson Description: In this lesson I show you how to use a std::shared_ptr. Shared pointers are the second of three types of smart pointers introduced in C. They are a wrapper around raw pointers, that allow you to ensure that a resource stays alive while an object points to it. The mechanism for this is by using reference counting, and a special 'control block' does the book keeping for your smart pointers. ►YouTube Channel: 🤍 ►Please like and subscribe to help the channel!

Назад
Что ищут прямо сейчас на
moderncpp НОЧЬ на ЗАБРОШКЕ upload image in jquery ajax laravel игра в бутылочку на поцелуй iqos safe radmir admin эстэ уроки фигма mi band 4 vs mi band 3 отопительная печь из кирпича своими руками flask image upload and display dark souls 2 ascended mod прохождение смартфоне что подарить надень рождения отогар когда откроют турцию bahu begum ПШЕННАЯ иды галич ПШЕННАЯ Мясо в казане