正在加载图片...
Generic Programming(cont u Container supported the independence between data types and data structures list<int>, list<double> Iterators supported the independence between data structures and algorithms sort(vec, begin, vec. endO; Function templates supported the independence between algorithms and data types template <typename elemType binary_search(const vector< ElemType>&, ElemType&)Generic Programming (cont.) ◼ Container supported the independence between data types and data structures ◼ list<int>, list<double> ◼ Iterators supported the independence between data structures and algorithms ◼ sort(vec.begin(), vec.end()); ◼ Function templates supported the independence between algorithms and data types ◼ template <typename ElemType> binary_search(const vector<ElemType>&, ElemType&);
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有