| Blockland Forums > General Discussion |
| Torque Script |
| << < (4/11) > >> |
| sirchichi:
--- Quote from: Aide33 on April 04, 2014, 06:05:48 PM ---also port created murder mystery --- End quote --- port made super murder mystery, the regular murder mystery was made by cucumberdude and computermix. |
| Madara:
int main(){ int x = 0; cout<<"Enter the term "; cin>>x; int answer = 0; if(x == 1){ cout<<"The "<<x<<" term is 0"<<endl; } else if (x == 2){ cout<<"The "<<x<<" term is 1"<<endl; } else{ int first = 0; int second = 1; for(int i = 2; i < x; i++){ answer = first + second; first = second; second = answer; } cout<<"The "<<x<<" term is "<<answer<<endl; } return 0; } |
| Xalos:
You just spontaneously switched styles completely. GEE. * You're now putting your opening braces on the same line as the block definer, instead of their own line. * You've suddenly switched to using the standard output instead of printf. * You're now putting single-line comparisons inside a code block, instead of as a single line. * You're suddenly defining each variable seperately, instead of in a list. * Your style of whitespace just changed completely, too. * You're now using an inline method instead of using a function. * The above is bad practice in general anyway. * Probably plagiarized this code too. Also you forgot the include and using lines. EDIT: Here's the scoreboard so far for those of you following along at home. * Leaves a large amount of whitespace trailing the bottom of the post. * Has a sentence fragment standing on its own. * Doesn't understand tutorials at all, suggesting a lack of actual coding knowledge. * Posts the thread in the wrong subforum. * Missing a closing bracket for int Fibonacci * No catch case for negative numbers, meaning that calling Fibonacci for all n < 0 causes an infinite loop * Used an extra loop variable i when you could've just used c - 1 for input to the fibonacci method * Didn't put the increment statement for i after the increment statement for c * Coded the Fibonacci method in such a way that it will recurse 2n+1 times * You signed up in July of 2013, and your first post was in March of 2014. * Your profile page has no useful information on you at all. * Your second post was spam which ANYONE with an IQ of 100 or higher would know is bannable on EVERY forum. * Your claim of depression is probably a tactic to get sympathy. * You blatantly steal other people's code. * You're now putting your opening braces on the same line as the block definer, instead of their own line. * You've suddenly switched to using the standard output instead of printf. * You're now putting single-line comparisons inside a code block, instead of as a single line. * You're suddenly defining each variable seperately, instead of in a list. * Your style of whitespace just changed completely, too. * You're now using an inline method instead of using a function. * The above is bad practice in general anyway. * Plagiarized this code too. * Can't even plagiarize code well - dropped an include and using. * "Too lazy" to post code that every programmer knows and can recreate in thirty seconds, yet not too lazy to continually reply to this thread to dig yourself deeper. |
| Madara:
I was to lazy to post my own code, I was busy doing homework. |
| Xalos:
* "Too lazy" to post code that every programmer knows and can recreate in thirty seconds, yet not too lazy to continually reply to this thread to dig yourself deeper. |
| Navigation |
| Message Index |
| Next page |
| Previous page |