PDA

View Full Version : Bored at work...



g3k0
June 28th, 2007, 09:40 PM
In an attempt to find the G stands for in GNU and to achieve world domination, I have put my computer to the task of finding the end of the recursion.


//In an attempt to find the G stands for in GNU and to achieve world domination,
//I have put my computer to the task of finding the end of the recursion.

#include <iostream>

void GNU(){
std::cout << GNU() << "is not unix\n";
}

int main(){
std::cout<< "GNU Stands For: " << GNU();

return 0;
}

skeeterbug
June 28th, 2007, 10:03 PM
Did it ever find the end? Or are you letting it run? :)

davmaz
June 28th, 2007, 10:28 PM
I don't know if this ran for you (I doubt it). You need to put the line:
using namespace std;
below the includes...

You could also be more verbose (not using the using namespace keyword) and do this:
std::cout << "bla bla" << std::endl;

Jessehk
June 28th, 2007, 10:29 PM
Did it ever find the end? Or are you letting it run? :)

Well, eventually he'll get a stack overflow (I think).

rjack
June 28th, 2007, 11:32 PM
The HURD version!


#include <stdio.h>

void hurd (void);

void
hird (void) {
hurd ();
printf ("of Interfaces Representing Depth\n");
}

void
hurd (void) {
hird ();
printf ("of Unix-Replacing Daemons\n");
}

int
main (int argc, char **argv) {
printf ("HURD stands for :");
hurd ();
return 0;
}

g3k0
June 29th, 2007, 03:45 PM
Did it ever find the end? Or are you letting it run? :)

You will know when I reach the end.. I will have achieved world domination!


I don't know if this ran for you (I doubt it). You need to put the line:
using namespace std;
below the includes...

You could also be more verbose (not using the using namespace keyword) and do this:
std::cout << "bla bla" << std::endl;

How dare you question my coding abilities! My programs always compile the first time! Besides, I did put std:: before the couts.. see no edits....


Well, eventually he'll get a stack overflow (I think).

Nonsense! My stack is run by magical gnomes who have stack extending abilities. Not only that.. its a physical stack!


The HURD version!
Hah! you will be foiled by the doubly recursion and lack of magical gnomes with stack extending abilities. The world is MINE!

MiCovran
June 29th, 2007, 09:27 PM
I have put my computer to the task of finding the end of the recursion.

You will know when I reach the end.. I will have achieved world domination!

My stack is run by magical gnomes who have stack extending abilities. Not only that.. its a physical stack!

Hah! you will be foiled by the doubly recursion and lack of magical gnomes with stack extending abilities. The world is MINE!


LOL You need help, I think.


How dare you question my coding abilities! My programs always compile the first time! Besides, I did put std:: before the couts.. see no edits....
BTW, it does NOT compile, void() in cout :D

ankursethi
June 30th, 2007, 08:03 AM
while 1 :
print "WTF, mate?"