ENUMS in C++ explained easy 📅

  Рет қаралды 9,108

Bro Code

Bro Code

Күн бұрын

#enums #enumerations
Enums C++ tutorial example explained

Пікірлер: 19
@BroCodez
@BroCodez 2 жыл бұрын
#include enum Day {sunday = 0, monday = 1, tuesday = 2, wednesday = 3, thursday = 4, friday = 5, saturday = 6}; int main () { // enums = a user-defined data type that consists // of paired named-integer constants. // GREAT if you have a set of potential options Day today = friday; switch(today){ case sunday: std::cout
@higiniofuentes2551
@higiniofuentes2551 11 ай бұрын
Thank you for this very useful video!
@higiniofuentes2551
@higiniofuentes2551 11 ай бұрын
Is possible to create an enum variable with variables inside? Like a dynamic enum! Thank you!
@rameezalipacific
@rameezalipacific 10 ай бұрын
F
@Dazza_Doo
@Dazza_Doo Жыл бұрын
enum SheSaid {big = 7, small = 6, thin = 1, skinny = 0, oh-no = 10, get-out-of-here = 100};
@stith_pragya
@stith_pragya 2 ай бұрын
Thank You So Much for this wonderful video............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@JackEvans-hf7qt
@JackEvans-hf7qt Жыл бұрын
//program to display planet's info using enumeration(enums) in c++ # include using namespace std; enum planets { Mercury,Venus,Earth,Mars, Jupiter,Saturn,Uranus,Neptune }; int main() { planets planet=Mercury; switch(planet) { case Mercury: cout
@Dazza_Doo
@Dazza_Doo Жыл бұрын
Although the point of this exercise is to use enums, here a swtich epressions is why I love them. Enums can be difficult to iterate though, and maybe getting the sizeof(Enum) might work in C++, in C# it gets a little advanced.
@DetCoAnimeFan
@DetCoAnimeFan 2 жыл бұрын
Oh my, visited this channel after a while and so much new content to watch! GREAT!
@SurajDas-zi7wb
@SurajDas-zi7wb 2 жыл бұрын
thanks you so much for the lecture 💜 eagerly waiting for oop leacture :)
@KrittapasPuangmaha
@KrittapasPuangmaha Ай бұрын
Thank you
@MarwanNasser-c5b
@MarwanNasser-c5b Ай бұрын
enum person{ahmed=0,hossam=1,anas=2,khaled=3};
@Abhishek-m3o9v
@Abhishek-m3o9v 5 ай бұрын
have one doubt, how to use enums in arithmetic operations?
@snajper4141
@snajper4141 Ай бұрын
And what about enums in classes?
@chinno06
@chinno06 3 күн бұрын
I love pizza day haha
@Sebastian_Luncasu
@Sebastian_Luncasu 8 ай бұрын
enum Variables{integer, boolean}; Other variables didn't work
@danaildoganov
@danaildoganov 5 ай бұрын
#include enum player {Messi, Ronaldo, Neymar, Ronaldinho, Suarez, Stoichkov}; int main() { player best = Ronaldinho; switch(best){ case Messi: std::cout
C++ Tutorial:  enumerated data types [enums]
16:38
Professor Hank Stalica
Рет қаралды 1,7 М.
C++ pointers explained easy 👈
5:16
Bro Code
Рет қаралды 22 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 58 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 64 МЛН
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 1,1 МЛН
C++ recursion explained easy 😵
6:21
Bro Code
Рет қаралды 8 М.
What are C++ namespaces? 📛
4:37
Bro Code
Рет қаралды 34 М.
STRUCTS in C++ explained 🏗️
5:01
Bro Code
Рет қаралды 13 М.
Rust: When C Code Isn't Enough
8:26
CodeAhead
Рет қаралды 162 М.
C++ CONSTRUCTORS explained easy 👷
8:55
Bro Code
Рет қаралды 15 М.
you will never ask about pointers again after watching this video
8:03
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 808 М.
C++ CLASSES & OBJECTS explained easy 🧍
10:54
Bro Code
Рет қаралды 18 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 395 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 58 МЛН