My name is Benjamin too!! That weirdo number is due to declared variables containing "garbage" not 0. If you sent out a and b to cout, you would see that they do not contain 0s unless you initialize them to 0.
Hey Benjamin forget the wannabe critics.. good job on yur set of tutorials. Great for a newbe You've helped me understand many things I didn't before.
My name is Benjamin too!! That weirdo number is due to declared variables containing "garbage" not 0. If you sent out a and b to cout, you would see that they do not contain 0s unless you initialize them to 0.
bencin386 3 months ago
Polymorphism is a very important part of OOP you didn't go into.
cplusplusish 10 months ago
Thanks so much, beautiful tutorials
lolamind 1 year ago
Thanks man
JESUSwasARABICMAN 1 year ago
thanks...for teaching us all...brilliant
deldamas 1 year ago
You are not multiplying 0 * 0, because you didn't initialize the x,y properties. Those variables have random trash values.
jovannyrodz 1 year ago 4
One thing - variables must be initialized or they grab something in memory. Always set variables to some value.
nottommy333 1 year ago
A natural teacher. Simple and clear.
nottommy333 1 year ago
Hey Benjamin forget the wannabe critics.. good job on yur set of tutorials. Great for a newbe You've helped me understand many things I didn't before.
Wallysworld1123 1 year ago
1) initializer lists
2) const correctness
This tutorial is missing both
gammooo 1 year ago
OMG! THANK YOU DUDE! if u were here right now i'd kiss ya! mwuah! :* lol.... great videos....
ChoklitThundr 1 year ago
isnt there Set anf Get functions for classes thats built in?
Anddos25 1 year ago
@Anddos25 no
gammooo 1 year ago
I was gonna say the same thing. If you don't initialize a variable, it doesn't mean it is 0 . It's just "Garbage" , could be anything aka Random
kiansm 1 year ago
when you take off your Set_Values, x and y get random values in C++
rachidounet1 2 years ago