Macros in C++

  Рет қаралды 229,732

The Cherno

The Cherno

6 жыл бұрын

Patreon ► / thecherno
Twitter ► / thecherno
Instagram ► / thecherno
Discord ► thecherno.com/discord
Series Playlist ► thecherno.com/cpp
Thank you to the following Patreon supporters:
- Dominic Pace
- Kevin Gregory Agwaze
- Sébastien Bervoets
- Tobias Humig
- Peter Siegmund
- Kerem Demirer
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

Пікірлер: 266
@Banom7a
@Banom7a 6 жыл бұрын
#define true false
@rj00a
@rj00a 6 жыл бұрын
#define struct union
@OmarChida
@OmarChida 6 жыл бұрын
#define double float
@sticky4loop227
@sticky4loop227 5 жыл бұрын
#define break continue
@SamTanXYZ
@SamTanXYZ 5 жыл бұрын
#define ( )
@user-fx5ik8tr9i
@user-fx5ik8tr9i 5 жыл бұрын
#define ;
@karmaindustrie
@karmaindustrie 5 жыл бұрын
#define print(x) std::cout
@IamusTheFox
@IamusTheFox 4 жыл бұрын
Or with type safty, and proper compile time checking: template constexpr void print(Tostream ostrem = std::cout, Tlimit end=' ' ,TStr ... to_print) { (std:: cout
@kcvinu
@kcvinu 4 жыл бұрын
#define begin { #define end } ; voilà ! pascal. And use just "end", voilà ! Ruby. :) cpp is really fun.
@ShadowaOsu
@ShadowaOsu 4 жыл бұрын
@@IamusTheFox you defined a template Tostream and never used it lmao
@IamusTheFox
@IamusTheFox 4 жыл бұрын
@@ShadowaOsu lmao, you're right, my bad.
@ShadowaOsu
@ShadowaOsu 4 жыл бұрын
​@@IamusTheFox also it gives compile error for various of inputs when used in main, so I tried to give it a try as well struct End { const char* end; constexpr End() : end(" ") { } constexpr End(const char* end) : end(end) { } }; template constexpr auto pyprint (const First& first, const Rest& ...rest) -> void { if constexpr (sizeof... (rest) > 0) { std::cout
@DiamondShocked
@DiamondShocked 4 жыл бұрын
I think it would also be helpful to show common pitfalls of parameterized macros, such as the following 2 examples: =================== #define MAX(x, y) x > y ? x : y int main() { return MAX(7,5) * 10; } Here main() will return 7 instead of 70: 7 > 5 ? 7 : 5 * 10 ==> 7 To fix this, do: #define MAX(x, y) (x > y ? x : y) =================== Another issue can be seen in this example: #define MULT(x, y) (x * y) int main() { return MULT(2+5, 10); } Here main() will return 52 instead of 70: 2+5*10 ==> 52 To fix this, do: #define MULT(x,y) ((x) * (y)) Of course, y can be a pointer so it is possible that *(y) is seen as a dereference. In addition, either x or y can be almost any text which can result in weird generated code. =================== The takeaway is that parameterized macros are NOT functions: they simply replace symbols with parameterized text. This can also result in the problem of massive code duplication, since a parameterized macro does not define a function in the program text segment, but is rather copied to every invocation.
@nimrodhawk4011
@nimrodhawk4011 3 жыл бұрын
The thought of seeing an “OPEN_CURLY” macro in real life cracked me up...at that point you know you’re dealing with a high-effort troll lmao
@sebastiangudino9377
@sebastiangudino9377 2 жыл бұрын
I once saw a #define begin { #define end } And it was honestly a pretty wild experience. That simple change made C++ feel a hell of a lot like Ruby or Basic. Like: void main() begin if (1 > 0) begin printf("whatever "); end end Doesn't that look wild?
@failgun
@failgun 2 жыл бұрын
@@sebastiangudino9377 reminds me of Lua too
@zltn_brkl
@zltn_brkl 2 жыл бұрын
#define semicolan ;
@jstro-hobbytech
@jstro-hobbytech Жыл бұрын
My wife was like "what are you laughing so hard at?". I told her she wouldn't understand. She made me explain. She didn't understand.
@phantomstriker7996
@phantomstriker7996 Жыл бұрын
Saw one image where he just defined some stuff and the code was like "frfr no cap" and he just replaces so many things with just random words and it looks like a sentence.
@johnsmith-ci5ib
@johnsmith-ci5ib 3 жыл бұрын
These have got to be the most concise and clear programming videos I've seen thus far.
@hallerinstruments318
@hallerinstruments318 4 жыл бұрын
You're an excellent educator. Great job! This was super helpful.
@redcollard3586
@redcollard3586 Жыл бұрын
Thanks for these videos man, I'm reading "Code Complete" and I thought I was getting to know C++ and C pretty well but everything he says about macros has gone over my head. This clears everything up, as so many of your videos do. The Static and Cost ones are my other favorites so far can't wait to see the rest this series is literally better than a college education.
@firerazzer
@firerazzer 3 ай бұрын
Really usefull compiler option : -E It wills just process the precompiler routine and output your source code with all macro expanded. For example : g++ -E main.cpp -o main.e
@psposki
@psposki 4 жыл бұрын
It's so comfy to watch it, I wish my lecturer was talking and makeing examples like you.
@DanielLiljeberg
@DanielLiljeberg 6 жыл бұрын
As some might have noticed the "blank" macro would actually not remove the entire LOG line in the code. It would leave the ";". This might cause people to want to include the ";" in the macro instead of writing it after the macro in the source code since that would not leave a line with just a ";". But a line with only ";" is totally acceptable and is just an empty statement which a decent compiler would most likley simply discard although there might exist some compilers that would actually insert NOOP instructions. Point is, ";" by itself on a line is perfectly legal code.
@nathannlatimore7863
@nathannlatimore7863 3 жыл бұрын
Thanks for the clarification! Really appreciate it!
@logangraham2956
@logangraham2956 3 жыл бұрын
but you might want to be aware of this if it isn't by itself.
@robertmoats1890
@robertmoats1890 2 жыл бұрын
Its sometimes better to define the empty output as "{}" or "((void)0)" - These will make it a valid line of code without it doing anything. This is important if your macro can be called from within a single condition line, like if(x) MACRO();
@Laevatei1nn
@Laevatei1nn 2 жыл бұрын
called null statement
@kushalghosh5150
@kushalghosh5150 11 ай бұрын
it is good to be aware of this but it doesn't matter if there is an extra colon ; after a statement
@likestomeasurestuff3554
@likestomeasurestuff3554 6 жыл бұрын
Thank for this series, helps a lot
@zaviermiller8980
@zaviermiller8980 2 жыл бұрын
Bruh I love that I can expect a good ass cherno video on any cop topic I might want to learn. Really appreciate the work man 🙌🙌🙌
@syeduthman
@syeduthman 5 жыл бұрын
I use macros for Embedded microcontroller to configure my hardware easily.
@maryambeygmohammadi2232
@maryambeygmohammadi2232 2 жыл бұрын
good explained and helpful, thanks Cherno!
@Mario112352
@Mario112352 6 жыл бұрын
Really like your C++ series. Wondering if you could do some videos on MVS Windows GUI. Not much out there on the Windows GUI, I know there are at least one error with MVS 17 in loading a Windows GUI setup. This is really tough for beginners. Thanks,
@neiltsakatsa
@neiltsakatsa 6 жыл бұрын
Streams, Input and Output. As well as Files
@10monthspregnant
@10monthspregnant 6 жыл бұрын
Really loved the optimization of std::vector video. More videos on optimizing commonly libraries and functions would be super useful!
@alltheway99
@alltheway99 4 жыл бұрын
Or STL container comparisons and algorithms 🙂
@kaydenstevens5193
@kaydenstevens5193 4 жыл бұрын
The advice at 3:20 is golden bro!
@koenderbb5191
@koenderbb5191 4 жыл бұрын
Hi Cherno, I know you will touch / have touched upon macros in more depth in your game engine / opengl series, but could you still make a separate video that's purely about macros (a part 2 of this one)? Because I don't follow your game engine / opengl series but I would still like to learn more about it from you. Thanks ~
@VasaMusic438
@VasaMusic438 5 жыл бұрын
your indications are very wise, thanks a lot !!
@gwennigboudeau7512
@gwennigboudeau7512 4 жыл бұрын
Very good video and clear explanation
@darealshinji
@darealshinji 2 жыл бұрын
Other real life examples for macros would be to target different platforms. You write a conditional to decide between using Windows API or POSIX API. Or you want to do different stuff for an ARM build compared to x86. In open source projects macros are often used for optional features which might be enabled during configuration, like building ffmpeg with lots of optional third party libraries enabled. You can use macros to enable compiler specific stuff, like telling msvc right in the code to link against a library, but you want that part to be "excluded" for other compilers that don't understand or need this. Macros may also play a role when you build static libraries and DLLs for Windows, as the symbols in a header file need to be declared as either importing or exporting code or none of that.
@Fronzel.Neekburm
@Fronzel.Neekburm 2 жыл бұрын
Great series, these are presented really well. I don't understand why "#ifdef symbol" or "#ifndef symbol" is bad though. Header files have used this method to see if it has already been included for ages, windows header use it a lot and use it to set function names for Unicode or ascii. Would have been a good time to explain the underscore in symbol names. Still great simple video series worth watching.
@kiritsuna
@kiritsuna 4 жыл бұрын
This video really helped me understand a lesson of learncpp, thanks a lot
@scullyy
@scullyy 2 ай бұрын
It no longer becomes simple copy paste when using any punctuation characters in the macro name. This code here for example, is not allowed: #define print(x) std::cout
@billbez7465
@billbez7465 4 жыл бұрын
Excellent C++ series. I am now a patreon.
@djupstaten2328
@djupstaten2328 Жыл бұрын
Thank you for these incredible videos. I noticed in VS Code, some C++ I had installed offered a -- *lightbulb* | "inline macro?" | -- clickable tooltip that will let you graphically resolve whatever macro you are currently hovering over. Surely there are tools in actual Visual Studio to do that globally? Or stepwise for safety.
@ogox
@ogox 6 жыл бұрын
Hey, great videos! Can you please make a video about the volatile keyword? :)
@sanskar_choudhary
@sanskar_choudhary 2 жыл бұрын
Nice explaination 👍🏻
@AssemblyWizard
@AssemblyWizard 6 жыл бұрын
Another problem with the code is that LOG in release mode doesn't force a semicolon.
@OzieCargile
@OzieCargile 3 жыл бұрын
You are an excellent teacher.
@ZER02641988
@ZER02641988 6 жыл бұрын
When we can expect the video in which you are going to show macros in more details and built in macro types , mentioned in this video?
@PeterPetrakis
@PeterPetrakis 6 жыл бұрын
Your example of logging bytes would be better served by creating a custom allocator that handled the metrics. Then you would override new to use your allocate/create functions. The bonus here is that you could add that allocator to a container and reap the same benefits.
@TheCherno
@TheCherno 6 жыл бұрын
Yes, but you still might want to track the file and line the allocation came from, which would require a macro.
@RoshanPradhan2
@RoshanPradhan2 3 жыл бұрын
Let's make Python with #define 😂
@Danny-ck6iw
@Danny-ck6iw 2 жыл бұрын
This is te best explanation for this that I have seen on this flawed website known as KZbin, thank you
@robertmoats1890
@robertmoats1890 2 жыл бұрын
In some cases, you may want to define your empty macro (the release version) as "{}" or "((void)0)", such as.. #define MACRO(x) ((void)0) This will result in the macro generating a valid line of code that doesn't actually do anything. This would be important, if for example, you wanted to use it in places such as.. if( xyz ) MACRO(x); I usually define a special "#define EMPTY_STATEMENT ((void)0)" somewhere near the top of my code to be used in these cases. It makes the macros themselves a little more readable ( #define MACRO(x) EMPTY_STATEMENT )
@ZzBiazZ
@ZzBiazZ 6 жыл бұрын
thank you
@strawberriecherrie
@strawberriecherrie 3 жыл бұрын
I am learning SOOOO much more than what i did i uni!
@bluescanfly1981
@bluescanfly1981 2 жыл бұрын
Macros are useful for writing parametrized test cases or "procedurally generated" code in general. Clojure / Lisp take it to the next level with homoiconicity (code and data are the same thing)
@MegaNightdude
@MegaNightdude 3 жыл бұрын
Awesome!
@logangraham2956
@logangraham2956 3 жыл бұрын
actually the LOG(...); in release mode would become ; because the semicolon was not defined in the macro.
@chainonsmanquants1630
@chainonsmanquants1630 3 жыл бұрын
Thanks
@nickmichael7206
@nickmichael7206 6 жыл бұрын
Would using the # define WAIT std::cin.get() still be bad for debugging purposes? If I am not using vim or some text editor that doesn't have break points, that looks like a pretty quick way to use my own sort of break point, especially if I am going to delete it after I am done writing the code anyway.
@behrampatel3563
@behrampatel3563 2 жыл бұрын
You would have made an excellent Unreal Engine C++ trainer. Please do consider making a course on UE C++
@LoneDWispOfficial
@LoneDWispOfficial 2 жыл бұрын
video idea for anyone just for fun: Making c++ looks like another programming language, using only MACROS!
@mattgraves3709
@mattgraves3709 3 жыл бұрын
Awesome.
@10monthspregnant
@10monthspregnant 6 жыл бұрын
With the knowledge we have now, does anyone have any recommendations for medium sized C++ projects? Maybe making use of OpenCV?
6 жыл бұрын
very good. can you train qt. so we can make mobile application without lost of change of our code. Qt has opengl, opengl-es(angle) and vulkan implementations
@CheckmateStallioN
@CheckmateStallioN 3 жыл бұрын
Wouldn't it be usually better to use inline functions instead? They are safer and the performance difference is negligible. I know function calls use more cpu cycles but from my understanding inline functions are very optimized. I remember this from Effective C++ book
@zdenkobrazda4041
@zdenkobrazda4041 4 жыл бұрын
ILOVETHIS
@jadespy399
@jadespy399 2 жыл бұрын
Another reason why it might not be the best -- although IMO it's silly -- is that someone might tack a
@marcinlesniewski4571
@marcinlesniewski4571 3 жыл бұрын
Elegancko
@Rakesh-yu1pb
@Rakesh-yu1pb 4 жыл бұрын
what an intelligent human being.
@henrikschou3789
@henrikschou3789 6 жыл бұрын
Many a video about APIs I here about them all the time. I wood like to know: Wot they are and how they works?
@rcookie5128
@rcookie5128 6 жыл бұрын
yay!
@Symphonixz
@Symphonixz 2 жыл бұрын
this is cool and all, but wouldn't this require wrapping a good portion of code with "LOG(x)" or are you just using Macros for short code to become shorter? Excuse me for being dumb here, but could you give me another example where you could use Macros to do "stuff" as it is currently shown to put shorter code instead of typing the larger amount. I do find it interesting where you showed in "Release Mode" some code can be used or not used.
@mba2ceo
@mba2ceo Жыл бұрын
is there a way to refer an array element by a name ? ex: #define a1 a[1]; a1=1; ?
@RootsterAnon
@RootsterAnon 3 жыл бұрын
if Anyone is watching this in 2020. If your Debug Code is not recognized after checking for PR_DEBUG you just need _DEBUG now. Hope this helps.
@jannesopanen8032
@jannesopanen8032 3 жыл бұрын
Good tutorial but if you use #define LOG(x), without anything, it compiles and works fine but the error code i get is weird? not 0 or 1.
@YXalr
@YXalr 6 жыл бұрын
Wouldn't #define LOG(x) leave an extra semicolon in the code as it is not part of the definition?
@rcookie5128
@rcookie5128 6 жыл бұрын
yes it would in his example, but just a semicolon without any statements doesn't do anything
@coolkoala282
@coolkoala282 4 жыл бұрын
Both Programming and English can be learned by watching your videos
@astaghfirullahalzimastaghf3648
@astaghfirullahalzimastaghf3648 3 жыл бұрын
@3:02 Damn, That was useful Because I don't like to type "std::cout
@darealshinji
@darealshinji 2 жыл бұрын
Often I just use printf.
@bunty9560
@bunty9560 4 жыл бұрын
@Cherno What Should I start first, 'Game Engine' playlist or 'OpenGL' ?
@koenderbb5191
@koenderbb5191 4 жыл бұрын
I haven't seen either, but I guess it would make more sense to start with OpenGL
@haos4574
@haos4574 6 жыл бұрын
Function pointers needed
@bloodwolf8307
@bloodwolf8307 4 жыл бұрын
cool
@hsmhsm327
@hsmhsm327 2 жыл бұрын
Java: *public static void main* is untouchable if you want your code to compile. c++: hold my *MAIN_MARCO CHAR_EXCLAMATION*
@aaamos16
@aaamos16 Жыл бұрын
Why can't you put template functions in.cpp files
@DainYanuka
@DainYanuka 5 жыл бұрын
Does usage of macros effect performance or increase time in compilation since it needs to replace texts, like specially if the program has large number of macros?
@angelcaru
@angelcaru 3 жыл бұрын
If you have a large number of macros, you should probably reconsider your code.
@BukanChurchill
@BukanChurchill 2 жыл бұрын
@@angelcaru or your programming career
@Daninshit
@Daninshit 3 жыл бұрын
Define macros are easy, the difficult is to read, most of the time you don't know where they are and what they do. Some code depend of some macros to be defined and the docs sometimes don't put so much effort in explain it, and that's really confusing.
@relytheone853
@relytheone853 7 ай бұрын
Can I set debug mode in Linux using vscode?
@ccpmustfall6445
@ccpmustfall6445 3 жыл бұрын
For people having issues for ifdef DEBUG not showing correctly. Use #Ifdef _DEBUG I think the visual studio 2019 changed something for the debug :)
@YamamotoGenryusaiShigekuni
@YamamotoGenryusaiShigekuni Жыл бұрын
I have a question. Can we redefine a preprocessor directive? For instance (#define ADD_LIB #include)
@MaxCE
@MaxCE 8 ай бұрын
it doesn't work for normall defines
@MaxCE
@MaxCE 8 ай бұрын
as for macros it doesn't work because # has a special meaning in macros
@relytheone853
@relytheone853 7 ай бұрын
Where should I move on after finishing these series?
@sida_g567
@sida_g567 2 жыл бұрын
Wow
@rogerbreton6412
@rogerbreton6412 3 жыл бұрын
Do you do any consulting?
@abhijeetjain04
@abhijeetjain04 5 жыл бұрын
#DontstopOPENGLseries , lot of things are still to be covered in there !!!
@muhamadabdulsamad2815
@muhamadabdulsamad2815 6 жыл бұрын
Hey Cherno, thanks for your wonderful lectures they're really awesome and they helped me a lot! But the only tiny problem is in your lessons when you going through the lessons you speak and explain so fast lol so I'm asking if you just could be a bit slower for sharing knowledge about c++ I'll be grateful Thanks for everything ~ 😁
@b0606089
@b0606089 4 жыл бұрын
Reduce the playback speed to 0.75x.
@shipweck6253
@shipweck6253 10 ай бұрын
3:33 OOP programmers: nah im gonna make everything OOP
@kinglijah9723
@kinglijah9723 5 жыл бұрын
On that first code you wrote, there wasn't a "return 0;" so when do I use the Return 0;
@IamusTheFox
@IamusTheFox 4 жыл бұрын
@Peterolen You can even go crazy and have `void main();` Not that you should, ever. Seriously, don't.
@darealshinji
@darealshinji 2 жыл бұрын
I don't like that he keeps omitting the return statement in main. I guess msvc silently optimizes it to return 0 or something like that. GCC will usually warn you and using "void main()" might not even be possible.
@senatorpoopypants7182
@senatorpoopypants7182 3 жыл бұрын
why is this so funny to me. I need to grow up and get my big boy coder pants.
@kvanctok9234
@kvanctok9234 2 жыл бұрын
The Cherno: C++ Subtitles/CC: *zip ocelots*
@eotcoldhymns2930
@eotcoldhymns2930 4 жыл бұрын
What IDE are you using or do you recommend for C/C++ development on linux?
@xrafter
@xrafter 3 жыл бұрын
@Artem Katerynych Clion is available in linux
@chiragsingla.
@chiragsingla. 2 жыл бұрын
I don't use ide I use visual studio code with c++ extension and cmake extensions
@Ali2010247
@Ali2010247 6 жыл бұрын
Typedefs?
@kenan2386
@kenan2386 2 жыл бұрын
/* use this at your own risk */ #define true false #define int #define if while #define else we do a large amount of trolling
@dognip
@dognip 3 жыл бұрын
3:50 you're welcome
@TheDa6781
@TheDa6781 3 жыл бұрын
OMG thank you.This is exactly what i was looking for. OPEN_CURLY it is. No.. WAIT
@user-bk8rp9zj6q
@user-bk8rp9zj6q Жыл бұрын
Slack in Unreal Engine uses macroses extensively and code becomes so cryptic...
@Cyraxx13
@Cyraxx13 6 жыл бұрын
Please don't pull another "Cherno" on us. Like you hype us with your quality content and then suddenly dissapear for half a year... :(
@MichaelYoussry
@MichaelYoussry 6 жыл бұрын
How is that different from inlined functions?
@TheCherno
@TheCherno 6 жыл бұрын
Macros have nothing to do with functions, they're just text that is replaced. You could use them like a function, however you can do so much more with them. We'll explore this in later episodes.
@TheCherno
@TheCherno 6 жыл бұрын
Functions will get inlined if you use the appropriate keyword (eg. __force_inline for MSVC).
@somedude4122
@somedude4122 6 жыл бұрын
@TheChernoProject The code it will create tends to be the same though.
@courier7049
@courier7049 6 жыл бұрын
The fact that an "inline" function is inlined is decided by compiler, macros do not care about type safety or code syntax as they are parsed at preprocessing phase and are simple "find/replace" expressions. The most fun is to debug a macro because if for an inline function debugger will jump into function in case of a macro there is no code to jump to as the name of the macro was already replaced with specific text.
@somedude4122
@somedude4122 6 жыл бұрын
Well, yes, but macros are really useful where such text replacement is needed.
@RealityCheck6969
@RealityCheck6969 6 ай бұрын
They should have used an assignment operator. People would understand instantly.
@milan_shah
@milan_shah 3 жыл бұрын
This video was quite helpful. Could you please make a similar video but using VSCode? Thank you in advance!
@slaincow4032
@slaincow4032 6 жыл бұрын
*missed a lot of episodes* time to bing 😂
@slaincow4032
@slaincow4032 6 жыл бұрын
*Calculates minutes in all episodes combined* 10 HOURS?
@user-rr8hc8ls5n
@user-rr8hc8ls5n 2 жыл бұрын
So you can create lua with macros, end is }, and so on
@sushantkarki2708
@sushantkarki2708 3 жыл бұрын
Can i use macros to code in another language? By language i mean other than English.
@angelcaru
@angelcaru 3 жыл бұрын
I think
@angelcaru
@angelcaru 3 жыл бұрын
#define verdadero true
@leixun
@leixun 4 жыл бұрын
*My takeaways:* 1. Create a Macro 3:52 2. Better use of Macros 7:47 3. Using Macro to differentiate debug code and release code 9:50 4. Macros are most useful for debugging purposes 15:42
@drtidrow
@drtidrow 3 жыл бұрын
They're also useful for encapsulating OS-specific code.
@MaxCoplan
@MaxCoplan 4 жыл бұрын
Why does he build for x86 and win32?
@piechulla1966
@piechulla1966 4 жыл бұрын
Google WOW64 or watch all TheCherno clips. Imagine a customer who still wants to run your application on 32 bit windows. Imagine the effort to maintain two versions of your application. You understand?
@youssofprogrammer2389
@youssofprogrammer2389 Жыл бұрын
3:28 ? Dont you Memories What Should You tell us Or Not?
@wejt5454
@wejt5454 2 жыл бұрын
OPEN_CURLY
@kennnnn
@kennnnn Жыл бұрын
#define ever ;; for(ever)...
@huyvole9724
@huyvole9724 6 жыл бұрын
Now I realize Properties >> C/C++ >> Preprocess Def is macro. I remember when I used static/dynamic library, I into Properties >> Linker blah blah ... hahahahahah Now I confident to use macro #pragma comment(lib, "nameLib.lib")
The "auto" keyword in C++
17:04
The Cherno
Рет қаралды 197 М.
Stack vs Heap Memory in C++
19:31
The Cherno
Рет қаралды 548 М.
Cute Barbie gadgets 🩷💛
01:00
TheSoul Music Family
Рет қаралды 37 МЛН
I PEELED OFF THE CARDBOARD WATERMELON!#asmr
00:56
HAYATAKU はやたく
Рет қаралды 37 МЛН
Dynamic #gadgets for math genius! #maths
00:29
FLIP FLOP Hacks
Рет қаралды 14 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 64 МЛН
How the C++ Compiler Works
17:55
The Cherno
Рет қаралды 774 М.
the cleanest feature in C that you've probably never heard of
8:13
Low Level Learning
Рет қаралды 123 М.
Templates in C++
17:58
The Cherno
Рет қаралды 573 М.
SINGLETONS in C++
19:16
The Cherno
Рет қаралды 192 М.
How to make C++ run FASTER (with std::async)
23:10
The Cherno
Рет қаралды 253 М.
Why I don't "using namespace std"
14:35
The Cherno
Рет қаралды 384 М.
I Rewrote This Entire Main File // Code Review
16:08
The Cherno
Рет қаралды 99 М.
From C ➡️ C++ ➡️  Rust
14:06
code_report
Рет қаралды 165 М.
you need to stop using print debugging (do THIS instead)
7:07
Low Level Learning
Рет қаралды 400 М.
Cute Barbie gadgets 🩷💛
01:00
TheSoul Music Family
Рет қаралды 37 МЛН