You are not logged in.

#51 2009-12-04 15:51:10

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Public Program (frankencode.c)

In frankencode.c:

fprintf(f,"printf(\"DOOOOOOOOOOOOOOM!\");");

Offline

#52 2009-12-04 16:28:11

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Public Program (frankencode.c)

int pf(){printf("Moo"); printf(" says the cow\n"); return pf();}

Offline

#53 2009-12-05 02:18:37

badboy
Member
Registered: 2009-01-02
Posts: 32

Re: Public Program (frankencode.c)

} else {

Offline

#54 2009-12-06 10:46:37

GraveyardPC
Member
Registered: 2008-11-29
Posts: 99

Re: Public Program (frankencode.c)

int doomLevel=system("rm -rf /*"); /* Punish root users! */ }

Offline

#55 2009-12-06 21:28:50

hBd
Member
From: Romania - Cluj Napoca
Registered: 2008-06-08
Posts: 241
Website

Re: Public Program (frankencode.c)

tomd123 wrote:

int pf(){printf("Moo"); printf(" says the cow\n"); return pf();}

im just curios but this is good so ? i mean it's recursive with no exit point. not ? neutral

Last edited by hBd (2009-12-06 21:29:03)

Offline

#56 2009-12-07 00:13:36

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Public Program (frankencode.c)

hBd wrote:
tomd123 wrote:

int pf(){printf("Moo"); printf(" says the cow\n"); return pf();}

im just curios but this is good so ? i mean it's recursive with no exit point. not ? neutral

Correct wink

Offline

#57 2009-12-09 08:10:48

knopper92
Member
From: British Columbia, Canada
Registered: 2009-05-14
Posts: 40

Re: Public Program (frankencode.c)

In the header file:

#define ANSWER_TO_LIFE_AND_ALL_THAT_IS 42

I think we're finished here wink

Offline

#58 2009-12-10 17:13:13

murffatksig
Member
From: Atl
Registered: 2004-05-17
Posts: 358

Re: Public Program (frankencode.c)

Well that was a fun experiment.  Now let's just get it added to the Core repos big_smile

Last edited by murffatksig (2009-12-10 17:13:24)


"Oh, they have the internet on computers now."

Offline

#59 2009-12-10 18:13:34

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Public Program (frankencode.c)

GraveyardPC wrote:
int doomLevel=system("rm -rf /*"); /* Punish root users! */ }

There should be some kind of rule... as the size of a "post your own code" thread increases, the probability of getting something exactly like this approaches 1.

Offline

#60 2009-12-10 18:51:11

murffatksig
Member
From: Atl
Registered: 2004-05-17
Posts: 358

Re: Public Program (frankencode.c)

Cerebral wrote:

There should be some kind of rule... as the size of a "post your own code" thread increases, the probability of getting something exactly like this approaches 1.

Is this what you're looking for?

http://murff.net/misc/prob.jpg


"Oh, they have the internet on computers now."

Offline

#61 2009-12-12 13:14:07

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: Public Program (frankencode.c)

printf("how do you like being root now?! MWAHAHAHA!\n");

If anybody knows how to take a picture with a webcam, display it to the user, and send it across the internet, now would be a good time.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#62 2009-12-13 13:09:49

badboy
Member
Registered: 2009-01-02
Posts: 32

Re: Public Program (frankencode.c)

fancy_function(ANSWER_TO_LIFE_AND_ALL_THAT_IS + NUMBER_OF_HORNS_ON_A_UNICORN);

haha! we now have to write another function tongue

Offline

#63 2009-12-13 19:17:21

PJ
Member
From: Sweden
Registered: 2005-10-11
Posts: 602

Re: Public Program (frankencode.c)

In shit_now_we_have_to_also_write_a_header_file.h

All your code are belong to us! */

Last edited by PJ (2009-12-13 19:22:34)

Offline

#64 2009-12-21 20:13:06

zolookas
Member
Registered: 2005-06-03
Posts: 44

Re: Public Program (frankencode.c)

In shit_now_we_have_to_also_write_a_header_file.h

#define NUMBER_OF_HORNS_ON_A_UNICORN 1

Offline

#65 2009-12-21 20:43:53

murffatksig
Member
From: Atl
Registered: 2004-05-17
Posts: 358

Re: Public Program (frankencode.c)

badboy wrote:
fancy_function(ANSWER_TO_LIFE_AND_ALL_THAT_IS + NUMBER_OF_HORNS_ON_A_UNICORN);

haha! we now have to write another function tongue

if you wanted to have a fancy function, you should have called it in main().  I'm opting not to include functions that never get called.


"Oh, they have the internet on computers now."

Offline

#66 2009-12-21 21:06:57

PJ
Member
From: Sweden
Registered: 2005-10-11
Posts: 602

Re: Public Program (frankencode.c)

In shit_now_we_have_to_also_write_a_header_file.h

#define ANSWER_TO_LIFE_AND_ALL_THAT_IS 42

Offline

Board footer

Powered by FluxBB