shawty support group made my day haha v helpful video ty
@PunmasterSTP3 жыл бұрын
Underscore? More like an over-score, of educational videos for KZbin! Thanks again so much for making this awesome tutorial series.
@shreyaesha0012 жыл бұрын
shawty support group :)
@cortisol_induced_coma2 жыл бұрын
Bro I don't wanna get up either 😔✊
@ljubaceranic9372 жыл бұрын
"shawty support group"
@vegansynths77574 жыл бұрын
Ah. That underscore method is really going to help me as a beginner because I'm getting confused when you name things the same even though they are two different things. (please note the educated use of the word 'things'.)
@praveenpeiris35762 жыл бұрын
2:30 XD
@marebot4044 жыл бұрын
i'm curious: why are you not using "using namespace std;" at the beginng? then you wouldn't need to write "std::" in front of everything.
@ManishSharma-eu4wy4 жыл бұрын
To avoid naming conflict, he spoke about that in some past video. Generally, writing "std::" is a good practice to avoid some errors and having a better understanding of the code.
@joepeters87464 жыл бұрын
eg. you want to use great extern libery for some stuff, which has a string to implemented.
@OmegaF774 жыл бұрын
Status is now a weird looking word.
@THE_joshbeoulve3 жыл бұрын
My school's module says that setters should never assign values to their referenced properties and it reeked of bull. This pretty much confirms it.
@chudchadanstud10 ай бұрын
Can you provide a more clear explanation?
@midas_96483 жыл бұрын
great vid.. btw how do i create a setter for a string* ? could you advise ? :) ty
@brocklesnarufcchamp13 жыл бұрын
So the function get_status() will be the getter, am I right?
@pierfrancescopeperoni3 жыл бұрын
Yes
@PunmasterSTP3 жыл бұрын
Looks like you *got* it!
@shaunmak80374 жыл бұрын
What is the color theme you're using, its amazing @Caleb Curry
@MrXavitaker4 жыл бұрын
I believe it's Solarized Light
@manu-mm4pc2 жыл бұрын
what about when the attribute is a pointer how do set and get? bool* val;
@CaptainZhariff4 жыл бұрын
What does "this -> status = status" means? Especially the functionality of ->
@michaelmatela45824 жыл бұрын
According to what I understood we're saying status (member of a class) is equal to status (the parameter).
@chimpspecialist4 жыл бұрын
I'm also confused why we need to use "this->" syntax. What does "this" refer to?
@joepeters87464 жыл бұрын
@@chimpspecialist "this" is a pointer pointing to the Object itself, that is passed implicitly when you call a member function. "->" is the same as "(*this)." Bec. this is a pointer, you cant have acces with a dot, but you first have to get the value of the object the pointer points to, than you can get the value with a dot.
@vanchark2 жыл бұрын
"this" is a keyword in C++ that refers to the pointer of an object. A pointer is a type of variable that stores the memory address of a variable or class object. "->" means go to that memory address stored in the pointer. So, "this -> status = status" means go to this object's memory address, and at that memory address, change its "status" attribute to the value of status. I hope this cleared things up.