#include int main() { // type conversion = conversion a value of one data type to another // Implicit = automatic // Explicit = precede value with new data type (int) int correct = 8; int questions = 10; double score = correct/(double)questions * 100; std::cout
@lazyken64687 ай бұрын
Still don’t get why the explicit conversion was only applied on questions and not correct variables. Does it matter?
@MilkyasMarkos3 ай бұрын
Bro you are Seriously Underated. When i get rich I won't forget you.
@animationaryzАй бұрын
He's cool
@dawidbakkes99086 ай бұрын
You are doing great work. It's crazy how the likes and comments drop off as the video series proceeds. Hoping I will make it to the end.
@Zulal-hk6nq Жыл бұрын
Your videos are well-explained. Thank you for your work!!
@disabledfabrication Жыл бұрын
// HERE IS MY OWN CODE WHILE LEARNING WITH BRO #include // type conversion = convert the type of variable to another. // It has two ways: implicit and explicit. int main() { // EXPLICIT CASTING int integer = (double) 3.14; int doubled = (int) 3.14; double number = 1.23; std::cout
@muzzammilsabuwala23982 жыл бұрын
Bro really this also you made me easy to understand
@mariyaislambhuiyannidheid82802 жыл бұрын
thankuu so much for thi samazing contents . please upload more videos of full course
@Princess8868092 ай бұрын
That was helpful, thank you!
@juliantomesheski53644 ай бұрын
Thank you so much! I am watching this entire series, on this video right now (video 7). I can't believe it. I'm seeing the views, likes, and comments go down the further in I go...
@AnesZeo243 ай бұрын
Did you make it to the end or not yet?
@arooba6132Ай бұрын
you can use "using namespace std ; " after "include" instead of using "std::" in every line
@halbgefressen9768Ай бұрын
This is bad practice because of namespace pollution. Also, using C-style casts in C++ is bad practice because the cast can silently change its meaning if you modify the base class. Use static_cast, reinterpret_cast and/or const_cast instead (whatever is required).
@LetsGoSalmon Жыл бұрын
This is amazing!
@ryanalnaser9142 жыл бұрын
whatever anything before or after
@gusgus133010 ай бұрын
// Implicit (automatic) conversion of double to integer int locationX = 47.5; // => 47, integer truncates decimal value std::cout
@stonedorsey7316 Жыл бұрын
type casting on variables is something new! I am coming from Python (also thanks to your videos on that for file I/O and Tkinter) and this is not something I worked with really!
@honeman4 ай бұрын
type conversion is confusing i dont know why int a=8; int b=10; double c=(double)a/b*100; std::cout