diff options
Diffstat (limited to 'wk3/sect/candidate.c')
-rw-r--r-- | wk3/sect/candidate.c | 21 |
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; +} + + +/* + +*/ |