summaryrefslogtreecommitdiff
path: root/wk3/sect
diff options
context:
space:
mode:
Diffstat (limited to 'wk3/sect')
-rw-r--r--wk3/sect/candidate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wk3/sect/candidate.c b/wk3/sect/candidate.c
index 16af2b4..0f121a9 100644
--- a/wk3/sect/candidate.c
+++ b/wk3/sect/candidate.c
@@ -10,12 +10,15 @@ typedef struct {
} candidate;
int main(void) {
- candidate president;
+ candidate president = get_candidate("Enter a candidate: ");
president.name = "Alyssa";
president.votes = 10;
}
+candidate get_candidate(string prompt) {
+
+}
/*
- struct makes a new
+ struct makes a new
*/