CSimpleArray::Add

Aggiungere un nuovo elemento della matrice.

BOOL Add(
   const T& t 
);

Parametri

  • t
    L'elemento da aggiungere alla matrice.

Valore restituito

Restituisce TRUE se l'elemento correttamente aggiunto alla matrice, FALSE in caso contrario.

Esempio

// Create an array of integers and add some elements
CSimpleArray<int> iMyArray;
for (int i = 0; i < 10; i++)
   iMyArray.Add(i);  

Requisiti

Header: atlsimpcoll.h

Vedere anche

Riferimenti

Classe di CSimpleArray

CSimpleArray::SetAtIndex