Hello,
I have this type:
enum days{sun = 1, mon, tue, wed, thu, fri, sat};
and I have char in which is stored a name of the day:
char* day = "wed";
How can I recieve number of the day?
I tried something like:
int number = days(*day);
cout<<number;
but this won't work :(
thanks
I have this type:
enum days{sun = 1, mon, tue, wed, thu, fri, sat};
and I have char in which is stored a name of the day:
char* day = "wed";
How can I recieve number of the day?
I tried something like:
int number = days(*day);
cout<<number;
but this won't work :(
thanks
Comment