Coder's Guild Mailing List

import a value for const int?

Posted by casedeis@xxxxxx.xxx (Case Deis) on 1999-04-28

Thank you so much for the code for a linked list.  It should be a big =
help.
As I believe it will take me a while to figure out the code you =
provided, I need a temporary solution to my problem of varying array =
size. I think I have a solution, but I want to ask everyone if this will =
work or not.

What if I wrote a different program to count how many items was in the =
data file and then somehow imported this value to my main program, =
making it a const int?
Then I could declare the structure array as follows:  StructArray[Size]

Will this work?  If so, any idea how I can link two different programs =
in such a way?  Thanks again.

Shrapnel