Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Instance tracing problem....Please help (http://www.go4expert.com/forums/instance-tracing-problemplease-help-t5325/)

rag84dec 18Jul2007 10:18

Instance tracing problem....Please help
 
i have B class which is inheriting from A and XYZ...
like this...
Code:


                          A        XYZ
                          ^        ^
                          |        |
                        ---------------
                                |
                                |
                            B

A has a datamamber
class
{

          protected:
            C options;
          public:
            C optionsPublic;
};
B has a function start();

C has a vector oftype vector<D*> and D is the inner class

of the C...Like this
Code:

class C
{
  class D
      {
      };
      typedef vector<D*> optionlist;
      protected:
      oprionlist optionlistvector;
};

C has some functions AddOptions()
where it is updating the "vector optionlistvector"...
my question is....
How to use the optionlistvector???....its values???....using the following information....
If you want any please let me know....I think i need to learn about instances....

shabbir 18Jul2007 11:10

Re: Instance tracing problem....Please help
 
First just have a class Test where you have a vector and use it comfortably and then use in the same manner for Class C.


All times are GMT +5.5. The time now is 01:04.