Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // title: enum
- // ide: apple xcode
- // author: paulogp
- #include <stdio.h>
- enum the_week_days {segunda, terca, quarta, quinta, sexta, sabado, domingo};
- int main (int argc, const char * argv[])
- {
- int the_day_a = segunda;
- the_day_a++;
- if (the_day_a == terca)
- {
- printf("terca-feira\n");
- }
- the_day_a++;
- if (the_day_a == quarta)
- {
- printf("quarta-feira\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement