summaryrefslogtreecommitdiff
path: root/wk3/sect/candidate.c
blob: 16af2b497184f407bb224d744613dc444d6173f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}


/*
    struct makes a new 
*/