#enums #enumerations Enums C++ tutorial example explained
Пікірлер: 19
@BroCodez2 жыл бұрын
#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
@higiniofuentes255111 ай бұрын
Thank you for this very useful video!
@higiniofuentes255111 ай бұрын
Is possible to create an enum variable with variables inside? Like a dynamic enum! Thank you!
Thank You So Much for this wonderful video............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@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 Жыл бұрын
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.
@DetCoAnimeFan2 жыл бұрын
Oh my, visited this channel after a while and so much new content to watch! GREAT!
@SurajDas-zi7wb2 жыл бұрын
thanks you so much for the lecture 💜 eagerly waiting for oop leacture :)
@KrittapasPuangmahaАй бұрын
Thank you
@MarwanNasser-c5bАй бұрын
enum person{ahmed=0,hossam=1,anas=2,khaled=3};
@Abhishek-m3o9v5 ай бұрын
have one doubt, how to use enums in arithmetic operations?
@snajper4141Ай бұрын
And what about enums in classes?
@chinno063 күн бұрын
I love pizza day haha
@Sebastian_Luncasu8 ай бұрын
enum Variables{integer, boolean}; Other variables didn't work
@danaildoganov5 ай бұрын
#include enum player {Messi, Ronaldo, Neymar, Ronaldinho, Suarez, Stoichkov}; int main() { player best = Ronaldinho; switch(best){ case Messi: std::cout