Well, I am writing a program in which i need these global variables. However when I compile, ile I get a message To Much Global Data in This File.
I have no other option, i.e. use pointers and all, cause there are certain restrictions to as per my teacher said.
So is there any method to solve this. Also whats the limit of the global data. I am supposed to use Borland C++ 3.1
#define MAX_CAPACITY 500
int bookId[MAX_CAPACITY];
char bookName[MAX_CAPACITY][50];
char bookAuthor[MAX_CAPACITY][50];
int boolIssue[MAX_CAPACITY]; // 0, 1
char dateIssue[MAX_CAPACITY][12]; // dd-mm-yyyy
char dateReturn[MAX_CAPACITY][12]; // dd-mm-yyyy
int issuedTo[MAX_CAPACITY];
int issueToClass[MAX_CAPACITY];
char issueToSection[MAX_CAPACITY];
int boolMember[MAX_CAPACITY]; // -1, 0, 1