Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

GD Posting Guidelines

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jun-16-05 02:57 PM
Original message
GD Posting Guidelines
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 ;-)
Printer Friendly | Permalink |  | Top
proud2BlibKansan Donating Member (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?
Printer Friendly | Permalink |  | Top
 
matcom Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jun-16-05 02:59 PM
Response to Original message
2. HAHAHAHAHAHAHAHAHA
you need to learn to document your code better :D
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (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
;-)
Printer Friendly | Permalink |  | Top
 
aeolian Donating Member (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."
Printer Friendly | Permalink |  | Top
 
Misunderestimator Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jun-16-05 03:11 PM
Response to Reply #3
12. Typical.
:eyes: Update the damn tech spec, would you?
Printer Friendly | Permalink |  | Top
 
Catherine Vincent Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jun-16-05 02:59 PM
Response to Original message
4. I don't do algebra.
:-)
Printer Friendly | Permalink |  | Top
 
Avalux Donating Member (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!!!!!
lol! :rofl:
Printer Friendly | Permalink |  | Top
 
aeolian Donating Member (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.
:hide:
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jun-16-05 03:46 PM
Response to Reply #7
13. It's PHP
or mangling of such :D
Printer Friendly | Permalink |  | Top
 
muriel_volestrangler Donating Member (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)
Printer Friendly | Permalink |  | Top
 
Zomby Woof Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jun-16-05 03:05 PM
Response to Original message
9. SNORT
And those formulas are valid on Thursdays AND Fridays! ;-)
Printer Friendly | Permalink |  | Top
 
Goldmund Donating Member (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
:evilgrin:
Printer Friendly | Permalink |  | Top
 
aeolian Donating Member (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. :)
Printer Friendly | Permalink |  | Top
 
Misunderestimator Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jun-16-05 03:10 PM
Response to Original message
11. Is that the beta version?
Printer Friendly | Permalink |  | Top
 
billyskank Donating Member (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);
}
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Tue May 07th 2024, 05:59 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC