CList



  • Wie tu ich CList in meinem Prog. einbinden.
    Ich meine in C++ ist das mit den Klassen etwas anders wie in VC++.
    Daher meine Frage wie ich das in meinem Program verwirkliche.
    Danke für jede hilfe



  • Hier mal ein Beispiel aus der MSDN:

    /*
    CList::CList
    CList( int nBlockSize = 10 );
    
    Parameters
    
    nBlockSize
    
    The memory-allocation granularity for extending the list.
    
    Remarks
    
    Constructs an empty ordered list. As the list grows, memory is allocated in units of nBlockSize entries. 
    
    Example
    */
    
    // This code defines myList as a list of strings
    // such that memory gets allocated in chunks of
    // 16 strings.
    CList<CString,CString&> myList(16);
    
    // This code defines myList2 as a list of ints
    // such that memory gets allocated in chunks of
    // 128 ints.
    CList<int,int> myList2(128);
    

Anmelden zum Antworten