Hello first,
i have a tiny problem with the datatyp enum.
Code:
enum weekday{
Sonntag,
Montag,
Dienstag,
Mittwoch,
Donnerstag,
Freitag,
Samstag
};
weekday day;
so this is what i defined for it. what i know is that every weekday equals a number, beginning with sonntag = 0, Montag = 1 and so on.
So my question is now can i PRINT the weekday if i only have the number?
for example:
i have an..
how can i print weekday or day that the result look like this:
Code:
cout << day << endl;
what i want it to look like:
Dienstag
what it acually look like:
2
does anyone has an idea?