From a73bb4e170ac9ed4d76bdf3a0cef7c6c74eca8e1 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 18 Feb 2024 06:52:00 +0000 Subject: Sat, Feb 17, 2024, 10:52 PM -08:00 --- wk3/sect/candidate.c | 7 +++++-- 1 file 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 */ -- cgit v1.2.3