Working with References in C++

  Рет қаралды 24,569

Caleb Curry

Caleb Curry

Күн бұрын

Пікірлер: 39
@unrealdevop
@unrealdevop 2 жыл бұрын
I searched all over for a good explanation of references and pointers and nobody came close to explaining them as clearly as you do. Thanks for the video.
@thelanavishnuorchestra
@thelanavishnuorchestra Жыл бұрын
Haven't written in C or C++ in 30 years, and suddenly I found something I wanted to do that required C++. So, your lighthearted and straightforward tutorials are a godsend.
@ddimwhite4638
@ddimwhite4638 4 жыл бұрын
Восхитительно! Талантливый человек.
@ShayanShahmohammadi-l3s
@ShayanShahmohammadi-l3s Ай бұрын
This video was great as the theoretical video about references was. Hope bests for you❤
@keithrunyon7746
@keithrunyon7746 2 жыл бұрын
What is the graphics libary you are using in the advertisement?
@severgun
@severgun 4 жыл бұрын
I think you should mention that pass by value will not only consume memory, but also copy operation can be time consuming. Yes this is premature optimisation. But nothing wrong with mentioning that creating new variable/object and copying data not always cheap operation.
@RootsThatRuin
@RootsThatRuin 3 жыл бұрын
He goes over that in the video preceding this one. He does a really good conceptual overview of references in that video, and this video is kind of just a hands-on implementation video.
@higiniofuentes2551
@higiniofuentes2551 Жыл бұрын
The variable name data is the same outside of the function and inside of the function, is a bit confusing because I thought it could be different?
@neon3108
@neon3108 4 күн бұрын
Great video man
@skypuff
@skypuff 4 жыл бұрын
Informative if I do say so myself🔥🔥🔥
@DanielLevinedigitalpixel
@DanielLevinedigitalpixel 2 жыл бұрын
Hey Caleb. Great Video. Question. Why does passing a function parameter by reference give a different answer to passing it by value. What is the reasoning here? Thanks in advance
@haroonstar2195
@haroonstar2195 Жыл бұрын
It is because when passing a value of the function work, we copy the value of a to x and then increment x. Since we copied a to x and only x was incremented, this means the value of a is the same since it was not put through the function at all. When we set x as a reference instead, it means a and x share a value instead. So now x is being incremented by the function work, which also affects a now since they are referring to one another. That's why the value was different when he used the reference.
@higiniofuentes2551
@higiniofuentes2551 Жыл бұрын
Thank you for this very useful video!
@arihanttonage7436
@arihanttonage7436 4 жыл бұрын
Why did it not work if the argument was a vector(not reference) and when the value was passed?
@arihanttonage7436
@arihanttonage7436 4 жыл бұрын
@Peterolen oh,right. So it had to be done using pass by reference
@polisheikh1739
@polisheikh1739 4 жыл бұрын
Please give me advice..Give a oracal pdf book....Link plz give me. .
@skypuff
@skypuff 4 жыл бұрын
This is a wonderful and insightful video
@yourFavComment
@yourFavComment 3 жыл бұрын
dude thank you so much!
@pjosifovic
@pjosifovic 3 ай бұрын
finally clicked for me. thank you
@pierfrancescopeperoni
@pierfrancescopeperoni 3 жыл бұрын
4:35 You trolled us.
@JustThink2000
@JustThink2000 6 ай бұрын
Makes a lot of sense but still confusing
@Someone-kw6mw
@Someone-kw6mw 4 жыл бұрын
How to make a game using C++
@lexuthelexer1212
@lexuthelexer1212 4 жыл бұрын
Great question, did you find anything about it?
@lexuthelexer1212
@lexuthelexer1212 4 жыл бұрын
@Artem Katerynych Thanks for the information, i tried to install SFML once but the problem is, i dont know how to install third-party libraries. Can you please explain how i install them?
@lexuthelexer1212
@lexuthelexer1212 4 жыл бұрын
@Artem Katerynych Visual Studio Code
@lexuthelexer1212
@lexuthelexer1212 4 жыл бұрын
@Artem Katerynych i tried VS 2019 before i got to VS Code. I just like VS Code better
@EricSchmidutz
@EricSchmidutz 10 ай бұрын
Definitely Coke
@Krypt708
@Krypt708 4 жыл бұрын
monster???
@Memes_uploader
@Memes_uploader 3 жыл бұрын
Thanks bro
@turdle69420
@turdle69420 3 жыл бұрын
const ref
@Sky-nm3df
@Sky-nm3df 4 жыл бұрын
c++ is really back XD
@Sky-nm3df
@Sky-nm3df 4 жыл бұрын
for that time, by this time its no longer c++ lol XD
@anikapsarah8075
@anikapsarah8075 4 жыл бұрын
Extremely knowledgeable and genuinely cares about the success of his . Over all my sessions with Sir Scott Wilson ,I’ve come to conclude he has the best win ratio of 95+ and his sincerity is something you won’t find anywhere. Great place to earn and be supported by successful seasoned traders.
@unodos1821
@unodos1821 4 жыл бұрын
The most basic, it does nothing.lol
C++ Pointers - Finally Understand Pointers
15:56
Caleb Curry
Рет қаралды 222 М.
References in C++ Explained
14:21
Caleb Curry
Рет қаралды 105 М.
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
C++ Examples - Pass by Value vs Reference vs Pointer
11:53
Caleb Curry
Рет қаралды 24 М.
C++ new Keyword with Objects and Arrow Operator
8:29
Caleb Curry
Рет қаралды 16 М.
REFERENCES in C++
10:13
The Cherno
Рет қаралды 597 М.
you will never ask about pointers again after watching this video
8:03
C++ Pass by Value, Reference, Pointer Explained
9:33
Caleb Curry
Рет қаралды 47 М.
What are header files in C++ ( PROGRAMMING TUTORIAL for beginners)
23:54
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 343 М.
ENUMS in every programming language (All you need to know)
24:38