From 4d29f20498d1c663f70b160a6cbdcbb94feb58bb Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 18 Feb 2024 06:44:15 +0000 Subject: Sat, Feb 17, 2024, 10:44 PM -08:00 --- wk3/sect/candidate.c | 21 +++++++++++++++++++++ wk3/sect/structs.c | 19 ------------------- 2 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 wk3/sect/candidate.c delete mode 100644 wk3/sect/structs.c diff --git a/wk3/sect/candidate.c b/wk3/sect/candidate.c new file mode 100644 index 0000000..120537f --- /dev/null +++ b/wk3/sect/candidate.c @@ -0,0 +1,21 @@ +#include +#include +#include +#include +#include + +typedef struct { + string name; + int votes; +} candidate; + +int main(void) { + candidate president; + president.name = "Alyssa"; + president.votes = 10; +} + + +/* + +*/ diff --git a/wk3/sect/structs.c b/wk3/sect/structs.c deleted file mode 100644 index 59a1c07..0000000 --- a/wk3/sect/structs.c +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include -#include -#include -#include - -int main(void) {} - - -/* -typedef struct { - string name; - int votes; -} candidate; - -candidate president; -president.name = "Alyssa"; -president.votes = 10; -*/ -- cgit v1.2.3