What is C++ type conversion? ✨

  Рет қаралды 25,385

Bro Code

Bro Code

Күн бұрын

Пікірлер: 25
@BroCodez
@BroCodez 2 жыл бұрын
#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
@lazyken6468
@lazyken6468 7 ай бұрын
Still don’t get why the explicit conversion was only applied on questions and not correct variables. Does it matter?
@MilkyasMarkos
@MilkyasMarkos 3 ай бұрын
Bro you are Seriously Underated. When i get rich I won't forget you.
@animationaryz
@animationaryz Ай бұрын
He's cool
@dawidbakkes9908
@dawidbakkes9908 6 ай бұрын
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
@Zulal-hk6nq Жыл бұрын
Your videos are well-explained. Thank you for your work!!
@disabledfabrication
@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
@muzzammilsabuwala2398
@muzzammilsabuwala2398 2 жыл бұрын
Bro really this also you made me easy to understand
@mariyaislambhuiyannidheid8280
@mariyaislambhuiyannidheid8280 2 жыл бұрын
thankuu so much for thi samazing contents . please upload more videos of full course
@Princess886809
@Princess886809 2 ай бұрын
That was helpful, thank you!
@juliantomesheski5364
@juliantomesheski5364 4 ай бұрын
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...
@AnesZeo24
@AnesZeo24 3 ай бұрын
Did you make it to the end or not yet?
@arooba6132
@arooba6132 Ай бұрын
you can use "using namespace std ; " after "include" instead of using "std::" in every line
@halbgefressen9768
@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
@LetsGoSalmon Жыл бұрын
This is amazing!
@ryanalnaser914
@ryanalnaser914 2 жыл бұрын
whatever anything before or after
@gusgus1330
@gusgus1330 10 ай бұрын
// Implicit (automatic) conversion of double to integer int locationX = 47.5; // => 47, integer truncates decimal value std::cout
@stonedorsey7316
@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!
@honeman
@honeman 4 ай бұрын
type conversion is confusing i dont know why int a=8; int b=10; double c=(double)a/b*100; std::cout
@nitrogaming7565
@nitrogaming7565 11 ай бұрын
love you
@DhruvSharmaU
@DhruvSharmaU 9 ай бұрын
can we build our own app using this
@lolmagenta8748
@lolmagenta8748 Ай бұрын
yesn't
@anvrag
@anvrag Жыл бұрын
std :: cout
@markteleuca
@markteleuca 6 ай бұрын
random comment down below
@kartikchauhan5209
@kartikchauhan5209 Жыл бұрын
Random comment
How to accept user input in C++? ⌨️
5:31
Bro Code
Рет қаралды 47 М.
C++ user defined functions explained 📞
7:24
Bro Code
Рет қаралды 28 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
C++ variable scope explained 🌎
4:23
Bro Code
Рет қаралды 11 М.
Casting in C++
13:25
The Cherno
Рет қаралды 190 М.
What are C++ namespaces? 📛
4:37
Bro Code
Рет қаралды 46 М.
ComboBox in java swing
5:10
Adaptive Brains
Рет қаралды 289
C++ Typedef and type aliases explained 🙋‍♂️
5:26
Bro Code
Рет қаралды 35 М.
C++ type casting with the static_cast operator [4]
9:19
Professor Hank Stalica
Рет қаралды 6 М.
C++ arrays explained 🚗
5:29
Bro Code
Рет қаралды 35 М.
C++ pass by VALUE vs pass by REFERENCE? 📧
4:17
Bro Code
Рет қаралды 20 М.