Mail Archives: djgpp/1997/02/27/17:31:11
I have a question... It may be more of a C question than DJGPP, but
my professors don't seem to know what wrong...
I've got a multi-file program. Because of how much I'll be using it,
I'm trying to declare an array as global. In the main section, I'm
declaring the array, and then I've got it declared as extern in a .h file
that I'm including in all the other sections.
In one of my sections, I'm loading the array with values from a file.
I know this is working properly, since I've saved it right after loading
it in, and it's saved exactly as it's loaded in.
The section where I'm using it is in a different .cpp file, and by
the time I get there, the values I've loaded in are lost.
This is become a really sticky point. I've checked with two
professors here at UE, and neither of them can spot anything I'm doing
wrong... Help!
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
- Raw text -