diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-18 06:52:00 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-18 06:52:00 +0000 |
commit | a73bb4e170ac9ed4d76bdf3a0cef7c6c74eca8e1 (patch) | |
tree | 8087ba4b5445c116235d67a908ad5b5f45fce2c8 | |
parent | 96a13806e7b1772de2a3ab2f17aa11d4a158d548 (diff) |
Sat, Feb 17, 2024, 10:52 PM -08:00
-rw-r--r-- | wk3/sect/candidate.c | 7 |
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 */ |