blob: 0f121a9fd1623c7746fc2698e1e1dc86f89907a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#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 = get_candidate("Enter a candidate: ");
president.name = "Alyssa";
president.votes = 10;
}
candidate get_candidate(string prompt) {
}
/*
struct makes a new
*/
|