-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
39 lines (30 loc) · 718 Bytes
/
main.c
File metadata and controls
39 lines (30 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <stdio.h>
#include "functions.h"
#include <stdlib.h>
int main(int argc, char const *argv[]) {
FOOD foods[10], blankfood;
FRIEND friends[10],blankfriend;
blankfriend.balance = -1;
blankfood.price = -1;
for(int j=0; j<10;j++){
blankfood.friends[j].balance = -1;
}
for(int i = 0; i < 10;i++){
friends[i].balance = -1;
}
for(int i = 0; i < 10;i++){
foods[i].price = -1;
}
for(int i=0;i<10;i++){
for(int j=0; j<10;j++){
foods[i].friends[j].balance = -1;
}
}
puts("BillSplit v1.0.0");
puts("");
puts("");
puts("Before proceeding, you must register your friends.");
puts("");
firstmenu(friends, foods, blankfriend, blankfood);
return 0;
}