Okay, I haven't fully understood your first question, but I'll try and clear up parts of it that I have understood. Just tell us what you want to do in context of the following, or, if this isn't it, could you explain what it is that you want to do more clearly?
You have two classes defined in two different files, and you want to create the first class's object (
ClassA ) in the second class (
ClassB ). So basically, you would like to instantiate a single object of one of the classes in the other? Is this what you are trying to do?
OR
You have two classes defined in two different files, and you want to make the properties and behaviors of the first class (
ClassA ) to be made available through the second class (
ClassB ), and you want to create a single object of
ClassB in your
main() function, through which you can access all the methods provided by both of them?
And the answer to your second question:
Of course its possible to make a queue dynamic. You can do it by implementing a queue as a linked list. If you do this, then there is no need to set a maximum limit to number of data items that you can keep adding to your queue.
A simple implementation of such a system can be found here:
http://www.dreamincode.net/forums/showtopic10157.htm
Cheers!
EDIT: Whoops! I didn't see the first 2 replies

... but still, it would be clearer for us if you could clarify your first question.