Honestly your teaching skills are godlike, but i'd appreciate if you left a comment pinned after every video with the code, what compiler you used, and if it's possible, the common issues when using what you're teaching
Thank you! I was stuck on this chapter as my course tried to explain this simple function with a class with raw pointers which are pretty complicated for me still. Not anymore though thanks to you! Thanks!
The best explanation yet. The first explanation that made me understand. You're the only that explains from where it comes what is on the left of the operator and what is on nthe right clearly. Specialy the left one.
@5:36 you say "This is going to take a position on the right", but we also want it to take a position on the left. Why are we not caring about the left?
Nice vid! I have a question tho, can an operator be overloaded to have its own functionality? For example, in discrete mathematics the functionality of the asterisk(*) or other operators has been changed quite a lot. a*b=a(a+b) something like that. So could this be done in operator overloading? I haven't tried it in code that's why I'm asking here hehe
why do you say you are looking to check: if(pos1 == pos2) but then above it compare: if(x==pos.x && y==pos.y) Aren't you then just checking if x=x and y=y instead of if x = y??? @Caleb Curry
first of all thank you for this video but when you wrote the class you wrote the member variables as public and altough this is not good for object orianted programming you didn't mension about this one so this is not good at least you could say something about OOP principles.
Explain better than most paid c++ course
am in college; can confirm
lol true
Honestly your teaching skills are godlike, but i'd appreciate if you left a comment pinned after every video with the code, what compiler you used, and if it's possible, the common issues when using what you're teaching
Thank you! I was stuck on this chapter as my course tried to explain this simple function with a class with raw pointers which are pretty complicated for me still. Not anymore though thanks to you!
Thanks!
The best explanation yet. The first explanation that made me understand. You're the only that explains from where it comes what is on the left of the operator and what is on nthe right clearly. Specialy the left one.
This is incredibly helpful. Going through this stuff in my class right now and the text book and materials have been so confusing! Thanks!
You are absolutely the best. Its really easy to follow as a beginner to this concept. Thank you
This is a great explanation. Have an assignment due and couldnt wrap my head around it.
My CIS 235 teacher is horrible at best. If it was not for you videos, I would not be doing as well as I am in the class. Keep up the solid work.
hey man you are saving my ass with these videos. thank you.
I love using operator overloading in my struct. It’s so useful
Operator overloading? More like outstanding content overloading! Thanks again for such a wonderful tutorial series.
That was the best explanation. You Rock! thanks
After I created a constructor, error occurs..
It says...no matching function for call to position ()...
Where is the wrong ?
THE BEST explanation ever. Thank you. Now I did understand.
Thank you! Best explanation I have ever seen on operator overloading!
I accidentally forgot to return the correct type for the + operator overload, but apparently c++ handled the conversion automatically.
so operator overloading only works for c++11?
Thank you Caleb you are truly like no one else.
@5:36 you say "This is going to take a position on the right", but we also want it to take a position on the left. Why are we not caring about the left?
Why would anyone want to overload operators??? Isn’t C++ already complicated enough?
That is really cool. You don't have something like that in Java!
分かりやすかったです!
For the "operator ==" could you not just do:
bool operator == (Position pos)
{
return (pos.x == x && pos.y == y);
}
Nice vid! I have a question tho, can an operator be overloaded to have its own functionality? For example, in discrete mathematics the functionality of the asterisk(*) or other operators has been changed quite a lot. a*b=a(a+b) something like that. So could this be done in operator overloading? I haven't tried it in code that's why I'm asking here hehe
try it then you will know
How am i ment to know that i needed to do that with the == operator and nice video too
very helpfull video
but why dont you use using namespace std before thw class instead of writting std::cout?
i dont understand what's this for
Came in clutch ty
what name's ide he is using ???
you are the F'ing man Caleb
i think you should use structs for data classes like position
classes are usually used more for complicated things like users
Operator overloading now I get it
You rock man
start 0:32
Why tf you used an if statement for returning a bool value
thanks bro
God bless you
But what has this to do with RAD studio ?? I don't get it
It’s his sponsor.
why do you say you are looking to check:
if(pos1 == pos2)
but then above it compare:
if(x==pos.x && y==pos.y)
Aren't you then just checking if x=x and y=y instead of if x = y???
@Caleb Curry
Owsom 😊😊😊😊
great
first of all thank you for this video but when you wrote the class you wrote the member variables as public and altough this is not good for object orianted programming you didn't mension about this one so this is not good at least you could say something about OOP principles.
😂😂😂😂
🤦🏻♂️
Well hes teaching about overloading not some oop principles. You dont know how to teach so maybe just shut up?
Muito bom
👍👍👍