Department of Computer Science | Institute of Theoretical Computer Science | CADMO

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

// Program: fill3.cpp // use a standard algorithm to fill a range #include #include // needed for std::fill int main() { int a[5]; std::fill (a, a+5, 1); for (int i=0; i<5; ++i) std::cout << a[i] << " "; // 1 1 1 1 1 std::cout << "\n"; return 0; }