Fun in programming languages
I'm taking a graduate-level programming languages class at the U of Mn. One of the problems in the current homework is to implement a binary tree (in C) that initially can hold ints, but can be genericized to hold anything. To show that it can hold anything, I'm implementing a data type for burritos.
The crown jewel of this assignment is getting to write this code:
typedef enum _burritomeat {veggie, chicken, barbacoa, carnitas, steak} BurritoMeat;
typedef enum _rice {brown, white} Rice;
burrito *makeMeABurrito(BurritoMeat m, Rice r, bool lettuce, bool cheese, bool sourCream);
Labels: C programming languages CSci5106