-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreditCardSystem.h
More file actions
26 lines (21 loc) · 789 Bytes
/
CreditCardSystem.h
File metadata and controls
26 lines (21 loc) · 789 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
/**
* \class CreditCardSystem.h
* Containts the basic elements of the system (like a transaction and the method of storing the transaction)
* \author $Rupin Mittal $
* \date $Date: 8/20/20
*/
#ifndef CREDITCARDSYSTEM_H //guard against infinite loop of includes
#define CREDITCARDSYSTEM_H
#include <stdlib.h>
#include <stdio.h>
#define NUM_GENTRANSACTIONS 30
#define MAX_TRANSACTIONS 100 //maximum of 100 transactions can be held
struct transaction //the struct that will represent the transactions
{
int amount;
char location[9];
char date[9];
};
extern struct transaction record[]; //the array of structs that holds all the transactions
extern int numTransactions; //the number of transactions in the record
#endif