- This topic is empty.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Computer science, programming - relevant posts, community threads, and courses
IT, Programming, & Web Development › Forums › CS50’s Introduction to Computer Science by Harvard University on Edx › Runoff Election Project: type def
Tagged: runoff project cs50, typedef struct in c
typedef struct { string name; int votes; bool eliminated; }
Unable to figure out the purpose of typedef struct.
All I see is it has defined a variable named name as string type, votes as int type, and eliminated as bool type. The same could have been done without typedef struct.
Runoff Election Project: type def
[learn_press_profile]