Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Challenge

Name: Anonymous 2013-08-02 23:48

Write a function in your language of choice that displays all its arguments on screen.
e.g. display("This function",1,0.9,'i','s',7/3,"displaying stuff") resulting in
"This function10.9is2displaying stuff"

Name: Anonymous 2013-08-03 2:23

#include <iostream>
void display() {}
template<typename T, typename... U>
void display(T arg, U... rest) {
        std::cout << arg;
        display(rest...);
}
int main(void) {
        display("This function",1,0.9,'i','s',7/3,"displaying stuff");
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List