I'm studying Pascal in school atm and have come over a bit of a problem with a program I've been asked to write.
The task is too make a calendar. My calendar uses an array with records too store data about the different days. The program uses a procedure to fill the global array with data.
Here comes the problem, my teacher don't like global variables being used inside procedures or functions.
As I come from a Java background I'm really frustrated over the fact that I can't find any simple way to convert my procedure to a function and return an array.
So I wonder if there is some hidden way to do this or some availabe extension to overcome this problem.
I would really appreciate some help.