diff options
Diffstat (limited to 'wk3')
-rw-r--r-- | wk3/sect/candidate.c (renamed from wk3/sect/structs.c) | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/wk3/sect/structs.c b/wk3/sect/candidate.c index 59a1c07..120537f 100644 --- a/wk3/sect/structs.c +++ b/wk3/sect/candidate.c @@ -4,16 +4,18 @@ #include <stdlib.h> #include <string.h> -int main(void) {} - - -/* typedef struct { string name; int votes; } candidate; -candidate president; -president.name = "Alyssa"; -president.votes = 10; +int main(void) { + candidate president; + president.name = "Alyssa"; + president.votes = 10; +} + + +/* + */ |