Birthday generator. :3

Posts 1–15 of 15 · Page 1 of 1
Birthday generator. :3
Took me a long while since I haven't done programming in a while, plus forgot some stuff and learnt a bunch of new things. ^_^ Enjoy!

[php]//Made by 'crushed'.
//Generates your birthday by a series of calculations.
//Don't touch or I'll rape you.
#include <iostream>
using namespace std;

int main()
{
float m, d, n;

cout <<"Enter the numba 7 yo: \n\n";
cin >> n;
cout <<"\nEnter your month: \n\n";
cin >> m;
cout <<"\nSo, 7 multiplied by your month is "
<< m * n
<< " .\n\n";
cout <<"Subtract 1 from "
<< m * n
<<" is "
<< m * n - 1
<<".\n\n"
<<"Multiply that # by 13 gives you..."
<< (m * n - 1) * 13
<<". Right?\n\n"
<<"Okay, so now add the day of your birth which is what?(Enter it you noob) ";
cin >> d;
cout <<"\nOkay, so that's "
<< (m * n - 1) * 13 + d
<<".\n\n";
cout <<"Let's just throw a random three in there. :]. "
<<"Now you have "
<< (m * n - 1) * 13 + d + 3
<<".\n\n"
<<"Okay, we're gonna multiply this by 11 cause we can so...\n"
<<"\nHere's what you got, eh?\n\n"
<< ((m * n - 1) * 13 + d + 3) * 11
<<", Kay.\n\n"
<<"Kay, now we gon' subtract the month of your birth!\n\n"
<< ((m * n - 1) * 13 + d + 3) * 11 - m
<<"\n\nNow, we'll subtract the day of your birth!\n\n"
<< ((m * n - 1) * 13 + d + 3) * 11 - m - d
<<"\n\nNow, we'll divide it by 10.\n\n"
<< (((m * n - 1) * 13 + d + 3) * 11 - m - d) / 10
<<"\n\nAdd 11, bitch ass. Why? Cause I said so.\n\n"
<< (((m * n - 1) * 13 + d + 3) * 11 - m - d) / 10 + 11
<<"\n\nLast step yo! Divide by a 100, aight?\n\n"
<< ((((m * n - 1) * 13 + d + 3) * 11 - m - d) / 10 + 11) / 100
<<"\n\nAin't that yo birthday son?!";

if(((((m * n - 1) * 13 + d + 3) * 11 - m - d) / 10 + 11) / 100 >= 12.31){
cout <<"\n\nWait....no it isn't..."
<<"\n\n...You retard."
<<"\n\nNoob messed up! Gtfo";
}

cin.get();
cin.get();
return 0;
}

[/php]

Function is listed in the comments in the beginning. Go figure.
Birthday Generator.rarattachment deleted · 15 downloads before removal
Ow.... I think my mind just got raped. This is so confusing.... what's it supposed to do? determine the exact value of pi?
Gives you your birthday. In decimal form. So.... mm.dd
Noob, follow the directions. D: LOL
Quote Originally Posted by crushed View Post
Gives you your birthday. In decimal form. So.... mm.dd
Noob, follow the directions. D: LOL
use setpercision() to remove the decimals.
MSDN it first.
Quote Originally Posted by Matrix_NEO006 View Post
use setpercision() to remove the decimals.
MSDN it first.
ooh, xD. It's supposed to be in decimal form, cause it's meant for a calculator, something you'd show a gr 5 with his calculator. :3 So I didn't really want too, but I'll read up on that function.

Thanks!
Lol, it looks like the programming language BrainFuck.

Lol, from wiki, this is hello world in BrainFuck (Not even joking.)

Code:
+++ +++ +++ +
[                       
    > +++ +++ +             
    > +++ +++ +++ +         
    > +++                   
    > +                     
    <<< < -                 
]                   
>++ .                   
>+.                     
+++ +++ +.              
.                       
+++ .                   
>++ .                  
<<+ +++ +++ +++ +++ ++.
>.                      
+++ .                  
--- --- .               
--- --- --.          
>+.                     
>.
Quote Originally Posted by radnomguywfq3 View Post
Lol, it looks like the programming language BrainFuck.

Lol, from wiki, this is hello world in BrainFuck (Not even joking.)

Code:
+++ +++ +++ +
[                       
    > +++ +++ +             
    > +++ +++ +++ +         
    > +++                   
    > +                     
    <<< < -                 
]                   
>++ .                   
>+.                     
+++ +++ +.              
.                       
+++ .                   
>++ .                  
<<+ +++ +++ +++ +++ ++.
>.                      
+++ .                  
--- --- .               
--- --- --.          
>+.                     
>.
See, we understand the same language.
BTW Jetamay, that language is awesome. ROFL.
Quote Originally Posted by radnomguywfq3 View Post
Lol, it looks like the programming language BrainFuck.

Lol, from wiki, this is hello world in BrainFuck (Not even joking.)

Code:
+++ +++ +++ +
[                       
    > +++ +++ +             
    > +++ +++ +++ +         
    > +++                   
    > +                     
    <<< < -                 
]                   
>++ .                   
>+.                     
+++ +++ +.              
.                       
+++ .                   
>++ .                  
<<+ +++ +++ +++ +++ ++.
>.                      
+++ .                  
--- --- .               
--- --- --.          
>+.                     
>.
I thought he was joking.... I actualy went on wikipedia.
Coolest language ever.
Quote Originally Posted by Void View Post
I thought he was joking.... I actualy went on wikipedia.
Coolest language ever.
LOL, yes it is. And I had to wiki it too after I saw it. XD
Anyways, hah. You couldn't do the birthday generating thing on a calculator. Fail.
Quote Originally Posted by Void View Post
I thought he was joking.... I actualy went on wikipedia.
Coolest language ever.
Let me google that for you





Code:
Brainfuck is the ungodly creation of Urban Müller, whose goal was apparently to create a Turing-complete language for which he could write the smallest compiler ever, for the Amiga OS 2.0. His compiler was 240 bytes in size. (Though he improved upon this later -- he informed me at one point that he had managed to bring it under 200 bytes.)

I originally started playing around with Brainfuck because of my own interest in writing very small programs for x86 Linux. I also used it as a vehicle for writing a program that created ELF files. Eventually, however, I too succumbed to the Imp of the Perverse and wrote some actual Brainfuck programs of my own.

The Language

A Brainfuck program has an implicit byte pointer, called "the pointer", which is free to move around within an array of 30000 bytes, initially all set to zero. The pointer itself is initialized to point to the beginning of this array.

The Brainfuck programming language consists of eight commands, each of which is represented as a single character.

> 	Increment the pointer.
< 	Decrement the pointer.
+ 	Increment the byte at the pointer.
- 	Decrement the byte at the pointer.
. 	Output the byte at the pointer.
, 	Input a byte and store it in the byte at the pointer.
[ 	Jump forward past the matching ] if the byte at the pointer is zero.
] 	Jump backward to the matching [ unless the byte at the pointer is zero.

The semantics of the Brainfuck commands can also be succinctly expressed in terms of C, as follows (assuming that p has been previously defined as a char*):

> 	becomes 	++p;
< 	becomes 	--p;
+ 	becomes 	++*p;
- 	becomes 	--*p;
. 	becomes 	putchar(*p);
, 	becomes 	*p = getchar();
[ 	becomes 	while (*p) {
] 	becomes 	}
Quote Originally Posted by ilovecookies View Post
Let me google that for you





Code:
Brainfuck is the ungodly creation of Urban Müller, whose goal was apparently to create a Turing-complete language for which he could write the smallest compiler ever, for the Amiga OS 2.0. His compiler was 240 bytes in size. (Though he improved upon this later -- he informed me at one point that he had managed to bring it under 200 bytes.)

I originally started playing around with Brainfuck because of my own interest in writing very small programs for x86 Linux. I also used it as a vehicle for writing a program that created ELF files. Eventually, however, I too succumbed to the Imp of the Perverse and wrote some actual Brainfuck programs of my own.

The Language

A Brainfuck program has an implicit byte pointer, called "the pointer", which is free to move around within an array of 30000 bytes, initially all set to zero. The pointer itself is initialized to point to the beginning of this array.

The Brainfuck programming language consists of eight commands, each of which is represented as a single character.

> 	Increment the pointer.
< 	Decrement the pointer.
+ 	Increment the byte at the pointer.
- 	Decrement the byte at the pointer.
. 	Output the byte at the pointer.
, 	Input a byte and store it in the byte at the pointer.
[ 	Jump forward past the matching ] if the byte at the pointer is zero.
] 	Jump backward to the matching [ unless the byte at the pointer is zero.

The semantics of the Brainfuck commands can also be succinctly expressed in terms of C, as follows (assuming that p has been previously defined as a char*):

> 	becomes 	++p;
< 	becomes 	--p;
+ 	becomes 	++*p;
- 	becomes 	--*p;
. 	becomes 	putchar(*p);
, 	becomes 	*p = getchar();
[ 	becomes 	while (*p) {
] 	becomes 	}
My brain would be fucked. It's worse than writing in assembly!
yay for obscure esoteric programming languages.
Quote Originally Posted by zeco View Post
yay for obscure esoteric programming languages.
Yay for yaying.
I think I might add BrainFuck to my list of extremely awsome languages
Quote Originally Posted by Hell_Demon View Post
I think I might add BrainFuck to my list of extremely awsome languages
Visual Basics is at the lowest on your list now. How do you feel about this?
Even though BrainFuck probably owns it.
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us