In PASCAL:
type screen=array[1..60,1..20] of char;
how to write this tag in terms of C language?
In PASCAL:
type screen=array[1..60,1..20] of char;
how to write this tag in terms of C language?
char screen[60][20];
Remember that C arrays start at 0.
Edit:
Oh, I vaguely remember Pascal (it's been more than 15 years).. you want to make screen that type. The above declares screen to be a 60x20 char array, if you want a type:
typedef char screen[60][20];
Then you can do:
screen foo;
foo will now be a 60x20 char array.
thanks very much for your help