- This program is a mini project as well as a playing ground for me to get familiar with C. This program simulates a cafeteria, where you can choose what to buy based on the menu. It also has an admin mode, where the menu can be edited in several ways.
- This is my first time working with C in this scale. I didn't really know much about the syntax of C before I started this mini project. I encountered lots of problems, mainly because I haven't had a full grasp on the syntax of C yet. I also worked on this project on and off, which caused me to forget some of the problems that I have encountered.
- Some of the problems that I have encountered that I still remember include not knowing how to read and write on a .csv file in c, not knowing how structs work, not knowing how pointers work, and not knowing how string padding in C works.
- Reference 1 (Read .csv in C)
- Reference 2 (String padding in C)
- Reference 3 (Repeat printing a character)
- Reference 4 (Fix scanf being skipped)
- Reference 5 (Find length of an integer in C)
- Reference 6 (VS Code ignoring breakpoint)
- Reference 7 (Fix array type has incomplete element type)
- Reference 8 (‘struct’ declared inside parameter list)
- Reference 9 (array type has incomplete element type 'struct FoodItem') (type of formal parameter 1 is incomplete)
- Reference 10 (Sleep function declaration in C)
- Reference 11 (Copy from one struct to another)
- Reference 12 (Find len of string without using strlen)
- Reference 13 (Error handling in C)
- Reference 14 (Return an array of struct from a function)
- Reference 15 (Edit a specific value in a csv text file) (Make a temp csv file and delete orig file, and rename temp file)
- Reference 16 (Use pointers to change a value)
- Reference 17 (scanf() gets skipped in a while loop)