C++ Programming Tutorial 41 - Conditional Operator (Ternary Operator)

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Man... you deserve more views. These are the best C++ tutorials on youtube, hands down. You never leave me with questions.

walterclements
Автор

In 41 videos watched today, this one was the biggest mind blow so far!

roberthoople
Автор

Basically in the statement, the ? operator is "if" and the : operator is "else"

bandanaboii
Автор

I’ve got a bad feeling that my professor won’t like me using this instead of if-else statements.

videogameepicfails
Автор

Ooh, an if-else statement simplified into a boolean statement, great stuffs.

cnash
Автор

Now we’re getting into it; thanks for terning up the heat!

PunmasterSTP
Автор

the short version of if~else statement is ternary operator.

stephenprofullobala
Автор

"Ah, ternary operator, my old enemy."
- Half-wit coder.

brocklesnarufcchamp
Автор

which c++ compiler are you using? i use dev c++, in which cin does not work.

dailydiaries
Автор

Why is this so similar to javascript? Do all coding languages use the same syntax like this? I've used python some but thats supposed to be easy syntax. this is like the equivalent to writing typescript i feel like

patrickconrad
Автор

No, it's not 10. It's always 42.

michaelmueller
Автор

what triggers me about coding youtubers is that they always do std::cout std::cin like just use using namespace std; its a lot easier to do. But you guys are prob just used to that so it is what it is 🤷‍♂

mohamadelmsallati