/* CSE 333 Su12 lecture 12 demo: nontypeparameter.cc */ /* Gribble/Perkins */ // Simple template with a type and a value parameter #include #include template void printmultiple(const T &value1) { for (int i = 0; i < N; ++i) std::cout << value1 << std::endl; } int main(int argc, char **argv) { std::string h("hello"); printmultiple(h); printmultiple("hi"); printmultiple(10); return 0; }