一个又大又长的列表吧,好的,我打算查找列表中的一个特定元素,我会告诉你,我用的是0到大概是,9999左右的整数。
Ok. And I'm going to look to see, is a particular element inside of that list, and again, I'll remind you, that's just giving me the integers from zero up to 9999 something or other.
如果愿意,可以在使用元素前用assure确保向量足够长。
If you prefer, you can simply assure the vector is large enough before using elements.
应用推荐