I had an idea to create a program from forum posts! This will probably not make anything cool but it's worth a try.
Rules are as follows:
1. One line of code per post with no more than one semicolon or one curly bracket and no trigraphs or digraphs.<br />
Anything after one curly bracket counts as a new line.<br />
<br />
2. Your line of code must function with all previous posts.<br />
<br />
3. Your line of code must be in code tags.<br />
<br />
4. You can submit a revision to a line by first writing "Revision:" then quoting the line you would like to replace followed by your line in code tags.<br />
Your revision will only be accepted if deemed necessary by OP.<br />
<br />
5. You can insert a line by first writing "Insert:" then quoting the line you would like to insert after followed by your line in code tags.<br />
<br />
6. All code and posts that do not follow the above rules will be ignored.
Lets make a c++ program!
int main() { return 0; }
Violates rule #1 since there are two curly brackets.
int main() { return 0;
Grandfathered, and still correct.
In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
'Washu' said:
int main() { return 0;
Nope still violates rule #1
Wrong. You changed the rules, however as the implementation was in place before the rules changed it is therefore still correct.
In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
'SteveDeFacto' said:
'Washu' said:
int main() { return 0;
Nope still violates rule #1
Wrong. You changed the rules, however as the implementation was in place before the rules changed it is therefore still correct.
Fine then I propose a revision!
#include <stdio.h>
'Washu' said:
'SteveDeFacto' said:
'Washu' said:
int main() { return 0;
Nope still violates rule #1
Wrong. You changed the rules, however as the implementation was in place before the rules changed it is therefore still correct.
Fine then I propose a revision!
#include <stdio.h>
int main() ??< return 0; ??>
In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement