Timeline for Rock Around the Clock
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 23, 2014 at 14:10 | comment | added | Hagen von Eitzen |
Using the above comments and more this can be condensed to 200 (even with the include and namespaces my compiler wants): #include<iostream> #define P std::cout<<++i<< #define C" o'clock" #define F P", ";P", ";P C<<", ";P C<<" rock"<<std::endl; int i;main(){F F F std::cout<<"We're gonna rock around the clock tonight.";}
|
|
Jul 18, 2014 at 1:31 | comment | added | user16488 |
N and R only appear once: it would be better to inline them than to make a macro.
|
|
Jul 17, 2014 at 19:46 | comment | added | Kyle Kanos |
Unless my math sucks, using P(", ") in place of Q saves you 2 characters.
|
|
Jul 17, 2014 at 19:38 | history | answered | bacchusbeale | CC BY-SA 3.0 |