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 β