DS1
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 02:57 PM
Original message |
|
Edited on Thu Jun-16-05 02:57 PM by DS1
If (argument == null) then { argument = "Go back to your Freeper Friends" ; x = 10; do { echo argument; x = x + 1; } while ( x < 10 ) } ..don't quote me on the code ;-)
|
proud2BlibKansan
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 02:58 PM
Response to Original message |
1. Is there a competency test ? |
|
Will I get kicked off if I don't pass?
|
matcom
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 02:59 PM
Response to Original message |
|
you need to learn to document your code better :D
|
DS1
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 02:59 PM
Response to Reply #2 |
3. I'm too busy debugging to document |
aeolian
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:00 PM
Response to Reply #3 |
5. Hey! That's my line! Get yer own! |
|
I also claim rights to "that's not a bug, it's a feature."
|
Misunderestimator
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:11 PM
Response to Reply #3 |
|
:eyes: Update the damn tech spec, would you?
|
Catherine Vincent
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 02:59 PM
Response to Original message |
Avalux
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:02 PM
Response to Original message |
6. You're making my head hurt - locking!!!!! |
aeolian
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:03 PM
Response to Original message |
7. It's like a weird cross-breed of BASIC, C, and LISP. |
DS1
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:46 PM
Response to Reply #7 |
muriel_volestrangler
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:04 PM
Response to Original message |
8. Only one iteration? is that the starting value of x you wanted? (n/t) |
Zomby Woof
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:05 PM
Response to Original message |
|
And those formulas are valid on Thursdays AND Fridays! ;-)
|
Goldmund
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:08 PM
Response to Original message |
10. A for loop would have been better |
aeolian
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:10 PM
Original message |
compiles to the same machine code, though. |
|
after optimizations are applied, of curse. :)
|
Misunderestimator
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:10 PM
Response to Original message |
11. Is that the beta version? |
billyskank
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Jun-16-05 03:54 PM
Response to Original message |
14. Must.....resist.....! |
|
Shit, I can't. Your code will only iterate the loop once, because x is initialised to 10 and the condition is loop while x < 10. Try:
#include <stdio.h> #include <string.h> #include "gd-posting.h"
#ifndef INITIAL_ARGUMENT #define INITIAL_ARGUMENT "" #endif
int x; char *argument = INITIAL_ARGUMENT;
void main(void) { if (!argument) strcpy(argument, "Go back to your Freeper friends\n"; for (x=0; x<10; x++) printf(argument); }
|
DU
AdBot (1000+ posts) |
Tue May 07th 2024, 05:59 AM
Response to Original message |