The Mutable Keyword in C++

  Рет қаралды 168,504

The Cherno

The Cherno

Күн бұрын

Patreon ► / thecherno
Twitter ► / thecherno
Instagram ► / thecherno
Slack ► slack.thecherno.com
Constants ► • CONST in C++
Series Playlist ► • C++
Gear I use:
-----------------
BEST laptop for programming! ► geni.us/pakTES
My FAVOURITE keyboard for programming! ► geni.us/zNhB
FAVOURITE monitors for programming! ► geni.us/Ig6KBq
MAIN Camera ► geni.us/t6xyDRO
MAIN Lens ► geni.us/xGoDWT
Second Camera ► geni.us/CYUQ
Microphone ► geni.us/wqO6g7K

Пікірлер: 145
@pradyumnkejriwal3007
@pradyumnkejriwal3007 6 жыл бұрын
Never knew about this keyword. Thanks for the video.
@filipanjou2296
@filipanjou2296 6 жыл бұрын
This comment would be funnier if it were posted on the video about the "this" keyword.
@princegupta6779
@princegupta6779 6 жыл бұрын
on seeing his comment i was gonna write almost what u wrote..but i saw ur then
@DerEinzigeNimmerland
@DerEinzigeNimmerland 6 жыл бұрын
Cherno big shoutouts from germany, learning from you so much!
@christophmuller9728
@christophmuller9728 3 жыл бұрын
Same
@rupeshmandke
@rupeshmandke 4 жыл бұрын
I had the exact same requirements for my toy ray Tracer where I had to count number of times particular ray had hit the object during traversal. I had to pass it as a modifiable function parameter or include it in common ray struct and then update .. wish I knew this couple of months back .. very handy for debugging.. thanks for sharing :-)
@princegupta6779
@princegupta6779 6 жыл бұрын
thanks for the concise explanation of all the topics...i really needed to get these topics covered thoroughly and quickly to start developing my JAVA and LWJGL game in C++ and openGL...THANKS A LOT
@aaQ-pv4wy
@aaQ-pv4wy 8 ай бұрын
how is everything going?
@johnbilodeau6296
@johnbilodeau6296 4 жыл бұрын
Your explanations are interesting to watch. I use the mutable keyword only on mutex to allow the definition of const thread safe getter on active objects.
@HrishikeshKulkarni
@HrishikeshKulkarni 6 жыл бұрын
I'm waiting for your heap and stack memory video. Please don't abandon it!
@pikmin4000
@pikmin4000 6 жыл бұрын
IT's BEEN MAAAAAAAADE
@vertigo6982
@vertigo6982 5 жыл бұрын
Stack - Static - Compile time/Heap - Dynamic - Runtime.
@SteamX64
@SteamX64 5 жыл бұрын
Vertigo wrong, watch cherno’s video. He allocated an array with size specified during runtime in stack
@gaymerjerry
@gaymerjerry 4 жыл бұрын
I always just say when teaching people programming early on "I'll explain in more detail later but in general stack is memory for functions heap is general memory"
@rauldragu9447
@rauldragu9447 4 жыл бұрын
@@SteamX64 This might be a wee bit too late but in the hope of putting things straight i have to correct you. Vertigo is in fact right, you cannot allocate arrays on the stack of a size specified at run time. You may be able to do some weird stuff with the stack pointer but you shouldn't be doing that anyway. Also, i wasn't able to find anything like you described in his video about stack vs heap. I will present the proper way of achieving that in order to add some value to my reply. You can allocate an array like that on the heap like this : int* array = new int[n]; where n is any int (and you would have to delete it after you are done with it like this: delete[] array;). Doing it like this: int array[n]; won't compile, the compiler needs to know how much to advance the stack pointer at compile time and a variable's value can only be known at run time.
@WindPortal
@WindPortal 4 жыл бұрын
Charno: randomly introducing a new concept while explaining a new concept 3:56 Me: Challenge accepted! >:)
@serkanozturk4217
@serkanozturk4217 Жыл бұрын
Personal Notes: -If you define an object as const in the main function, then to be abe to call a method on that function(obj.foo() ) , that foo() fuction must be const -Marking a class member as mutable means that const methods inside that class can actually modify that member
@MinhVu-dk3ym
@MinhVu-dk3ym Жыл бұрын
tks for gut tips
@Yazan_Majdalawi
@Yazan_Majdalawi Жыл бұрын
yep, and marking a member function as const means that it can be called on constant instances of that class. other member functions would cause an error.
@eddieh7962
@eddieh7962 2 жыл бұрын
These are awesome for prepping cpp before a game dev job interview (at least for internship)
@h.hristov
@h.hristov 6 жыл бұрын
Thanks for these videos man.
@greatbullet7372
@greatbullet7372 6 жыл бұрын
you actually getting alot People into coding c++
@rcookie5128
@rcookie5128 6 жыл бұрын
wow soooo many videos recently!!
@ren69ade
@ren69ade 6 жыл бұрын
Please do a video on lambdas (auto) things, this is a first time I have seen this in c++, and I thought I actually knew quite a lot about c++. Apparently not. Good stuff man, keep up with a good work.
@ericrussell5304
@ericrussell5304 6 жыл бұрын
i had been away from c++ for quite some time. I came back and saw all those autos and lambdas and stuff and it left my head spinning!
@pxolqopt3597
@pxolqopt3597 4 жыл бұрын
i guess c++ is one of those language that is impossible to truly master because of all the features it has
@naveenvenugopal8334
@naveenvenugopal8334 3 жыл бұрын
@cherno. As you know, your presentation style is awesome and I am now watching your videos in 0.75 speed to fully understand the content LOL :)
@minecraftcookie2929
@minecraftcookie2929 8 ай бұрын
for anyone watching this video after so long from being posted like me just a note that for const objects u have to explicitly declare a constructor or initialize each member variable but strings are exceptional std::string name dosent requires initialization !!
@sergeyklassen9696
@sergeyklassen9696 6 жыл бұрын
Love the series! Keep up the great work!
@viraatchandra8498
@viraatchandra8498 6 жыл бұрын
Should we really be returning a reference of a stack created object (like in 1:45). What if we assign it to a value like: std::string a = entity.GetName(); and entity goes out of scope and is destroyed... what will happen to `a`?
@baaryl
@baaryl 6 жыл бұрын
Maybe you could prepare an episode about lambda functions or smart pointers?
@zdspider6778
@zdspider6778 Жыл бұрын
6:03 You actually did use "mutable" with a lambda. In the _"Reading/Writing C# Fields in Editor // Game Engine series"_ video from the other channel (Cherno Unplugged) at 1h21m52s. I can't link it because then my comment won't be visible to other viewers, but it's there.
@tudorciutacu5568
@tudorciutacu5568 2 жыл бұрын
you’re a legend man!
@Hoptronics
@Hoptronics Жыл бұрын
@3:14 make me want to be able to give a special thumbs up for relevance.. like an ah ha moment
@SrIgort
@SrIgort 4 жыл бұрын
Thanks I didn't know about it but it seems to defeat the whole propose of a const function lol
@nazar1744
@nazar1744 6 жыл бұрын
once again a nice video! Can you actually recommend a website to practice c++ coding? I've found some but they are not very beginner-friendly.
@xkcd963
@xkcd963 6 жыл бұрын
exercism
@ibiixie
@ibiixie 6 жыл бұрын
SoloLearn is great for beginners
@Gilpow
@Gilpow 6 жыл бұрын
The Shroom SoloLearn is not for practice coding
@RandellTrulson
@RandellTrulson 2 жыл бұрын
When you put a cactus next to your computer, then wave your hand around talking about stuff....LOL yeah.
@giuliograziani3261
@giuliograziani3261 3 жыл бұрын
awesome mate
@tsibulsky4900
@tsibulsky4900 Жыл бұрын
Thank you very much for your videos 👍👌🙏
@IMMORTALmen
@IMMORTALmen 2 жыл бұрын
What about mutex in const methods? Should we mark a mutex as const for be able to lock/unlock it?
@EchoVids2u
@EchoVids2u 2 жыл бұрын
I am discovering so many things I had no idea you could do in C++
@abhijeetjain04
@abhijeetjain04 6 жыл бұрын
Can you make video on lambda function !!
@justanotherguy5516
@justanotherguy5516 4 жыл бұрын
Can anyone explain if mutable can be used with const pointers?
@surbhijain1281
@surbhijain1281 4 жыл бұрын
Can you tell the difference between const and constexpr here? const int a =5; constexpr int a = 5;
@chainonsmanquants1630
@chainonsmanquants1630 3 жыл бұрын
Thanks
@surbhijain1281
@surbhijain1281 4 жыл бұрын
Can we use final keyword like this? final int a =0;
@axeldaguerre8838
@axeldaguerre8838 5 жыл бұрын
someone knows how he get this 'linter' when is is typping ? I have visual assist, enable the inspect feature but still never have underline error when i am typing something wrong. It could really help me during my leanring because my computer is quite slow at building so i waste time, and understanding of the language on how it really works
@5236x2
@5236x2 4 жыл бұрын
tools > options > text editor > c/c++ > advanced > intellisense > disable squiggles
@huaxingzheng6208
@huaxingzheng6208 5 жыл бұрын
Thanks, I like it! I like you!
@Hoptronics
@Hoptronics Жыл бұрын
After watching like 1/2 these videos im surprised by code back in the early 1990s and 2000s even worked.. i was on a team of 3 writing edi transactional banking applications for a private edi VAN.. also one of the first to implement authentication using an LDAP server before microsoft had its Active Directory Server stuff.. i guess it just goes to show there's more than 3 ways to skin a cat..
@yosuamartiansia3444
@yosuamartiansia3444 4 жыл бұрын
Can anyone explain the use of const std::string&? I know the use of const after the method, but I csnt understand why he would put const before the return type
@DiegoBM
@DiegoBM 3 жыл бұрын
@firehazard your reply should be added as part of Cherno's comment on the consts video sir
@rohitkumarshrivastava9693
@rohitkumarshrivastava9693 2 жыл бұрын
What is the difference between `const std::string& GetName() const` and `const std::string GetName() const`?
@deniz-gunay
@deniz-gunay Жыл бұрын
did you learn the difference? i did not understand why he used the ampersand here.
@rohitkumarshrivastava9693
@rohitkumarshrivastava9693 Жыл бұрын
@@deniz-gunay Still no. Waiting for him to see this comment and reply.
@gamescreator5040
@gamescreator5040 Ай бұрын
The & version returns a const reference to your member variable, while the version without & returns a copy of your string. This means that the member string will be copied and returned, so you can safely change the copy without affecting the member variable. In this case, you should omit const because it doesn't make much sense; therefore, it should be std::string GetName() const. you asked about this one year ago, so I guess you’ve figured it out by now...
@sillfsxa1927
@sillfsxa1927 3 жыл бұрын
learning how to use matters, but learning where to use is more important. the way you teaches, is the first one... for the second one, you only say in some situations, there will be some cases that we need to use some remedies! that sucks
@phantomstriker7996
@phantomstriker7996 Жыл бұрын
Lambda is a throwaway function Also mutable means changeable or something like that
@__hannibaalbarca__
@__hannibaalbarca__ 10 ай бұрын
Yeah i see this key word in Bjarn books, but i never used (only one time).
@richardrisner921
@richardrisner921 3 жыл бұрын
Whoa!
@Natsuki_Baru
@Natsuki_Baru 4 жыл бұрын
what is the meaning of the '&' in "const string& GetName()"????? its the same if you delete it !
@simosimo7600
@simosimo7600 4 жыл бұрын
you should see his video about references
@bhaskarjat6160
@bhaskarjat6160 3 жыл бұрын
what string& exactly means is that you will be returning the actual reference of the string, the value of which if changed, will change the value of the actual variable which was returned from the function
@Nicolas-gq9vu
@Nicolas-gq9vu 6 жыл бұрын
Thanks for this nice video! (And please, make a video on lamdas)
@joseponce6250
@joseponce6250 2 жыл бұрын
cool!!
@TheKautschuKMedia
@TheKautschuKMedia 3 жыл бұрын
seems like a terrible concept tbh having a const method is a contract which gets broken by mutable. the usage with lambas seems to be bug prone... reading the code one might assume x++ actually incremented x, but it didn't in the outside scope.
@mikicerise6250
@mikicerise6250 2 жыл бұрын
C++: Code yourself into a knot. Code yourself out of the knot with additional code. 😜
@avineshbenjamin1782
@avineshbenjamin1782 Жыл бұрын
const std::string& will result in the string copied right?
@christiancox973
@christiancox973 11 ай бұрын
I think it will return a reference to the actual value in the object (not copied) but one that is const so you can't modify the value through that reference.
@serhat4571
@serhat4571 2 жыл бұрын
const std::string& GetName() const i know that 2. const prevent programmer to change member variable in class but what is 1. const mean. what things prevented when i type const in front of function?
@zdspider6778
@zdspider6778 Жыл бұрын
It makes it a const reference. You could even write it like: std::string *_const&_* GetName() const The compiler doesn't care. It's a stylistic choice called "East Const" (as opposed to "West Const"). If there wasn't "const" there, it would just be a reference. Because of the "&" symbol.
@matthewsanetra
@matthewsanetra 6 жыл бұрын
What is the difference between a mutable and a mutex?
@AgentM124
@AgentM124 6 жыл бұрын
Mutex is a variable type that can be accessed by multiple threads. mutable is a type augment/modifier like const, to define it's accesibility. Not a true C++ god, but this is what I have understood.
@Trogzul
@Trogzul 6 жыл бұрын
I would say your half-right. You can access a mutex from multiple threads, but it is usually not the mutex itself you are interested in, rather the variables it protects. You can use a mutex to protect variables that can be accessed by multiple threads. Usually you will lock on the mutex, then access the data the mutex is protecting, then release the lock. Alternatively you could make the variable atomic (if this is feasible, depends on the situation). One example of where to use mutable variables is actually in relation to mutexes. Because if you have a mutable mutex in your class, you can use that to protect your data in const functions. You can see an example here: hastebin.com/eliteyapiz.cpp (Yes it would be better to use a lock_guard in the example).
@AgentM124
@AgentM124 6 жыл бұрын
Trogzul that sounds better. Thanks 😊
@lysdexic9129
@lysdexic9129 6 жыл бұрын
when you first discuss Lambdas you pass by value and the compiler complains, if your are passing by value why is mutable required as you are passing a copy of the value?
@max1231
@max1231 3 жыл бұрын
Because the compiler creates a copy that is const by default, so you have to tell it to not to make it const
@chenjin6407
@chenjin6407 3 жыл бұрын
Anyone knows what the const in the return variable type (eg: const std::string& ) does?
@ipizza9941
@ipizza9941 Жыл бұрын
Figured it out yet? I would like to know.
@aradhayaarora6155
@aradhayaarora6155 3 жыл бұрын
why did you use a reference to string returning from GetName() method?
@max1231
@max1231 3 жыл бұрын
It helps the performance, as it’s not copying the data on the heap (otherwise it would)
@deniz-gunay
@deniz-gunay Жыл бұрын
@@max1231 why heap? not stack?
@AntiWanted
@AntiWanted 3 жыл бұрын
Nice
@AbdulMoiz-ho8rx
@AbdulMoiz-ho8rx 2 жыл бұрын
nice
@akr.2818
@akr.2818 2 жыл бұрын
What is the keyboard method to do this 3:00?
@zdspider6778
@zdspider6778 Жыл бұрын
Hold Alt and press Arrow Up / Arrow Down.
@vaishanthjv2519
@vaishanthjv2519 11 ай бұрын
Why is std::string passed by reference?
@joshuatejero5617
@joshuatejero5617 3 жыл бұрын
One question here! Why do there's an ampersand on the Function?? "Const std::string& GetName() Const"
@masheroz
@masheroz 2 жыл бұрын
That refers to a reference, rather than the value.
@AmirSepasi
@AmirSepasi 5 жыл бұрын
what is the editor that you are using in your demonstrations? Thanx.
@b4ttlemast0r
@b4ttlemast0r 2 жыл бұрын
the lambda usage seems more confusing than useful
@svenbtb
@svenbtb Жыл бұрын
You just have to learn where it's helpful, most C-like programming languages use it
@oshaynecastle9212
@oshaynecastle9212 Ай бұрын
if i ahve a felony how can i get a job in the coding world. especially if the situation is unbelievably circumstantial.
@bloodwolf8307
@bloodwolf8307 4 жыл бұрын
cool
@shushens
@shushens 3 жыл бұрын
The lambda example is not a different usage. A lambda is a const functor that can be invoked using parentheses operator. Since it is NOT a throw-away function and can be passed elsewhere, variables passed to it by value become a part of its state, which gets carried with it. Very bad idea to make it mutable. This should have been elaborated more.
@theamazedones3101
@theamazedones3101 6 жыл бұрын
what is the use of auto keyword ?
@matthewsanetra
@matthewsanetra 6 жыл бұрын
at the time of compiling it will check what is the best variable type to place there. example: auto var = 1; // Would make the variable 'var' an 'int' auto var = { 5, 2, 3 } // Would the variable 'var' an 'int[]' Once you set an auto to an int (for example), you cant set it to a string (or any other type). Think of auto as 'var' in JavaScript, or C#
@Trogzul
@Trogzul 6 жыл бұрын
Just quick small thing, because it is easy to get that wrong, and can be hard to spot. Currently auto var = {5, 2, 3} will make std::initializer_list. There is no good way to create regular C arrays with auto unfortunately. The reason he uses auto here is because the type of lambda's are implementation defined, so you can't spell the type yourself.
@skyseed3005
@skyseed3005 2 жыл бұрын
tenk yuuuu
@timangar9771
@timangar9771 3 жыл бұрын
Lambdas look pretty scary lol
@szinton
@szinton 6 жыл бұрын
Could You please explain Lambdas little better? I get the idea after watching this video, but I have no idea where I would use it in code.
@platin2148
@platin2148 6 жыл бұрын
Szinton A good example std::sort std::remove_if but it is really only syntactic sugar.
@szinton
@szinton 6 жыл бұрын
K, thanks! =)
@manai2683
@manai2683 2 жыл бұрын
I never use the mutable keyword because I never make my functions const... I know that's bad but I really don't see the use for it. Especially since other langauges like C# doesn't have it and they survive just fine.
@zdspider6778
@zdspider6778 Жыл бұрын
Yeah, until someone uses your function to do stupid crap like "GetSomeValue() = myOtherValue;" and assigns a value to it that you didn't intend, lol. This is C++. You should be sprinkling that shit _everywhere._ So many exploits were fixed in the Linux kernel by just adding 'const' to things. There's even an Indian girl who pretty much only contributed 'const' to it and got a scholarship because of those contributions.
@svenbtb
@svenbtb Жыл бұрын
I mean, you could say the same thing about pointers. Just because they aren't in C# doesn't mean that they don't have value and they don't have their place. C++'s whole point is that it gives you more control to do what you want, but you just have to be careful and pay attention, so that you don';t shoot yourself in the foot (and also clearly document your code so that someone using your code doesn't shoot their foot). I'm currently learning C++ but have experience using C#, it definitely is an adjustment but you just have to learn how to think differently. If you don't like it then just stick with C#, simple.
@ryanzwe
@ryanzwe 6 жыл бұрын
Why do people always use m_ ?
@TheCherno
@TheCherno 6 жыл бұрын
It's a convention to distinguish class members from local variables.
@einsjannis
@einsjannis Жыл бұрын
This is so cursed
@chadgregory9037
@chadgregory9037 Жыл бұрын
brit accent > aussie accent?
@einsjannis
@einsjannis Жыл бұрын
@@chadgregory9037 yes but what does that have to do with my comment, I was talking about mutability in C
@user-if1ey5sm1v
@user-if1ey5sm1v 3 жыл бұрын
I know this is a very, very late comment. But are their any downsides by using this?
@user-if1ey5sm1v
@user-if1ey5sm1v 3 жыл бұрын
@Peterolen thanks
@mattgraves3709
@mattgraves3709 3 жыл бұрын
For those that don't know Lambdas are based on Lambda calculus so... Ya know,... Go take an advanced mathematics course to understand them :>)
@Thesurvivour-yl3hd
@Thesurvivour-yl3hd 6 жыл бұрын
c++ lambda tutorial/overview? pls?
@Krokoklemmee
@Krokoklemmee 6 жыл бұрын
he said that he'll be covering them in a later video. If you can't wait for that, you can check this out en.cppreference.com/w/cpp/language/lambda
@austinfritzke9305
@austinfritzke9305 4 жыл бұрын
can be a bit verbose in your introductions
@sahilsingh1
@sahilsingh1 4 жыл бұрын
It just seems absurd. You want an object /class method to be const, but then you want to make some class variable "mutable"? Isn't that a poorly written code in the first place?
@gavinw77
@gavinw77 6 жыл бұрын
Great demo/explanation of mutable. Learning++; But once again, you go too fast. eg at 4:12 you haven't even written the semicolon at the end of the lambda body when you switch screens. You've gotta think of how people are following along, for instance, I've got VS open SBS punching in the samples to see it working. You're forcing me to be constantly pausing and rewinding to keep up. It's a 7 minute video, it wouldn't hurt to throw in an extra 30 seconds of moments. Is it so important that we see your face instead of an extra couple of seconds of looking at the code. You can keep talking.
@atahirince
@atahirince Жыл бұрын
look like lambda is black magic in here, god bless us!
@heetgorakhiya2242
@heetgorakhiya2242 4 жыл бұрын
But, why not put the m_Debugcount variable in public?
@svenbtb
@svenbtb Жыл бұрын
I know this is 3 years later, but if someone else with the same question happens across this, he's creating a hypothetical counter to see how many times that the function gets called, so he wants it to be associated with THAT class/instance. So, he would probably take this and within the class also have a getter or a print function that returns this value, so when testing you could see how many times the function was called. This would be useful for, say, testing that the function gets called the correct number of times when you're making a loop or a state-machine or something like that, and making sure that everything is going as expected.
@heetgorakhiya2242
@heetgorakhiya2242 Жыл бұрын
@@svenbtb I've moved to a completely different language, but thanks for taking the time to explain
@taukakao
@taukakao Жыл бұрын
This sounds absolutely horrible for readability. Good explenation tho.
@drwisdom1
@drwisdom1 4 жыл бұрын
I feel like I just got kicked in the brain. All of this is unnecessary including mutable, lamba functions, and passing by reference.
@dimitar.bogdanov
@dimitar.bogdanov 3 жыл бұрын
I don't know about the first two but passing by reference is not unnecessary.
@drwisdom1
@drwisdom1 3 жыл бұрын
@@dimitar.bogdanov Passing by reference is an alternative syntax to using pointers. I like pointers better and avoid passing by reference. The only time passing by reference is required is for things like copy constructors (which could have used pointers) and calling external code that uses passing by reference args. Passing by reference was created for programmers who like periods but are scared of "->".
@dimitar.bogdanov
@dimitar.bogdanov 3 жыл бұрын
​@@drwisdom1 Passing by reference is syntax sugar, yes. It's made to have your programs be a little more easier to digest. As a person who is coming from C# where you just have the ref keyword, passing by reference is much easier than having a pointer and rely on IntelliSense and the compiler to even be able to learn when to use a period or ->
@forhadrh
@forhadrh 2 жыл бұрын
hello guys my name is a Chennai welcome back to my say plus plus series - Close enough youtube! You are soo close... 😂
@LKokos
@LKokos 4 жыл бұрын
wtf is this color grading jesus
@jeffzz111
@jeffzz111 2 жыл бұрын
it is 9, not 8...
@svenbtb
@svenbtb Жыл бұрын
Within the Lambda function, it would return 9, yes. outside the function it still returns 8.
@anthonysteinerv
@anthonysteinerv 2 жыл бұрын
why are C++ lambdas so fucking horrible to write...
@zdspider6778
@zdspider6778 Жыл бұрын
It's one of the shortest forms to express how a function should perform and behave. Sometimes you want them to reference everything by value, other times you want everything by reference (to be able to modify them), and other times only _one_ variable by reference and everything else by value. The shortest lambda is technically: [](){} 😆 And it compiles.
@kcvinu
@kcvinu 4 жыл бұрын
Sorry, but it's too fast for non-English people.
@chadgregory9037
@chadgregory9037 Жыл бұрын
this is the video when shit starts feeling as messy as java... god fucking dammit lol
@svenbtb
@svenbtb Жыл бұрын
Imo I still prefer this way more than Java lol. Learned a little Java and it's way too verbose and awkward to work with, this makes a lot more sense to me. Guess it just depends on your preference though.
@mrbee8336
@mrbee8336 5 жыл бұрын
Thanks
Member Initializer Lists in C++ (Constructor Initializer List)
8:37
CONST in C++
12:54
The Cherno
Рет қаралды 395 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 61 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 145 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 8 МЛН
Function Pointers in C++
12:41
The Cherno
Рет қаралды 381 М.
Templates in C++
17:58
The Cherno
Рет қаралды 580 М.
Dynamic Arrays in C++ (std::vector)
14:14
The Cherno
Рет қаралды 372 М.
A const int is not a constant.
9:16
Jacob Sorber
Рет қаралды 66 М.
The NEW Keyword in C++
10:53
The Cherno
Рет қаралды 239 М.
the cleanest feature in C that you've probably never heard of
8:13
Low Level Learning
Рет қаралды 128 М.
are "smart pointers" actually smart?
9:44
Low Level Learning
Рет қаралды 71 М.
The Problem with Wind Energy
16:47
Real Engineering
Рет қаралды 865 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 61 МЛН