BILINGUAL WORD CARD Β· RANK 72

size()

πŸ“ Returns the number of elements in a C++ container

Member function returning container length.

δΈ­ζ–‡ε―Ήη…§ Β· Chinese

πŸ“ 桋量 vector ζˆ– string ι‡Œθ£…δΊ†ε€šε°‘δΈͺε…ƒη΄ 

η›Έε½“δΊŽ Python ι‡Œηš„ `len()`。

Code example

int n = v.size();
Explore 100 bilingual word cards β†’