summaryrefslogtreecommitdiff
path: root/wk3/sect/candidate.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-18 06:44:15 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-18 06:44:15 +0000
commit4d29f20498d1c663f70b160a6cbdcbb94feb58bb (patch)
tree42dd85215c4df722fa1112d112ead229ff172a91 /wk3/sect/candidate.c
parent8b4d0e991004f55d53363a77dd0670b05f0f4e1f (diff)
Sat, Feb 17, 2024, 10:44 PM -08:00
Diffstat (limited to 'wk3/sect/candidate.c')
-rw-r--r--wk3/sect/candidate.c21
1 files changed, 21 insertions, 0 deletions
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 <cs50.h>
+#include <ctype.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+typedef struct {
+ string name;
+ int votes;
+} candidate;
+
+int main(void) {
+ candidate president;
+ president.name = "Alyssa";
+ president.votes = 10;
+}
+
+
+/*
+
+*/