标签:art end star val const pre value fill code
给数组a[start:end-1]赋值value。
官方答案:
template <class T> void fill(T* a, int start, int end, const T& value) {// Set a[start:end-1]. for (int i = start; i < end; i++) a[i] = value; }
标签:art end star val const pre value fill code
原文地址:http://www.cnblogs.com/drgon/p/7452648.html