正在加载图片...
From pointers to iterators(cont,) u For vector, previous function works, because vector can be also sequentially addressed But a small problem: vector is nullable while array not, following usage will cause runtime error vector<string> svecr find( &svec[o], &svec[svec sizeof search_value); We add two supplementary functions for safeFrom pointers to iterators (cont.) ◼ For vector, previous function works, because vector can be also sequentially addressed ◼ But a small problem: vector is nullable while array not, following usage will cause runtime error vector<string> svec; find(&svec[0], &svec[svec.size()], search_value); ◼ We add two supplementary functions for safe
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有