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

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

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