Instance tracing problem....Please help

Discussion in 'C' started by rag84dec, Jul 18, 2007.

  1. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    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....
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice