Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Penis

Name: Anonymous 2008-09-08 12:49

Create a penis object in your favorite language with all functionality a real penis has.

Name: Anonymous 2008-09-08 12:55

cool story bro

Name: Bro 2008-09-08 12:58

>>2
Bro, are you imitating me, bro?

Name: Anonymous 2008-09-08 15:41

Are we talking about the functionality of a normal males working penis or your limp dick that hasn't been up since the early 90's

Name: Anonymous 2008-09-08 15:54

>>4
If you design your base class right, polymorphism will take care of those details. Polymorphism is perfect for penis.

Name: Anonymous 2008-09-08 16:26

>>6
I am a girl
Pre-op or post-?

Name: Anonymous 2008-09-08 20:41

>>6,8
FFFF---

Name: Anonymous 2008-09-08 21:01

hmm. i'm a pre-op girl, so i guess this...

private class Penis
{
 public:
 void piss();
 protected:
 int Bladder
}

Penis::piss()
{
 if (Bladder > 50)
 {
  Bladder--;
 }
}


yay for nearly non-functional penis.

Name: Anonymous 2008-09-08 21:03

>>10
You just dribble?  When my bladder hits the threshold, I dump it out to 0.

Name: Anonymous 2008-09-08 21:10

hmm, change it to
while(bladder > 1)
 {
  bladder = bladder/2;
 }
 bladder--;

Name: Anonymous 2008-09-09 2:57


  how about
    no?

Name: Anonymous 2008-09-09 2:57


#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#define A.piss(B) piss(A,B)
#define A.getHard() getHard(A)
#define A.isHard() isHard(A)
#define A.soft() soft(A)
#define A.cum() cum(A)
#define A.getLitters() getLitters(A)

typedef struct phallus {
  int bladder = 0;
  int is_hard = 0;
} penis;

void piss(penis my_penis, int litters)
{
  if (my_penis.bladder == 0) { printf("I'm all empty already\n"); return; }
  if (my_penis.bladder - litters < 0) { printf("I can't piss that much! return; }
  my_penis.bladder -= litters;
  if (rand() % 2 == 0) {
    if (rand() % 2 == 0)    
      printf("You can see a bird falling down cause it got hit by your piss\n");
    else
      printf("You killed a bee with your piss. Be proud.\n")
  else {
    if (rand() % 2 == 0)
      printf("You put those %d litters into a cup and drunk it. Freak.\n", litters);
  }
  printf("You tried pissing on a girl walking down the street. ");
  printf("It turned out it was a tranvestite and it fucked you. ");
  printf("I hope you enjoyed it.\n");
}

int isHard(penis my_penis)
{
  return my_penis.is_hard;
}
 
void getHard(penis my_penis)
{
  if (my_penis.isHard()) printf("I'm already ready, you dumbtard.\n");
  else {
    my_penis.is_hard = 1;
    printf("I'm ready for action, sir!\n");
  }
}

void soft(penis my_penis)
{
  if (my_penis.isHard()) {
    my_penis.is_hard = 0;
    printf("I hate when a hard on gets away like this :(.\n");
  }
  else printf("You idiot, I'm already soft\n");
}

void cum(penis my_penis)
{
  if (!my_penis.isHard) {
    printf("How the fuck you want to cum if your penis is soft? Fucker.\n");
    return;
  }
  my_penis.soft();
  if (rand() % 2 == 0) {
    if (rand() % 2 == 0)    
      printf("Your cum hit the wall and went right through it! Wow!\n");
    else
      printf("Your fapping incinerated your pants, but you still managed to cum.\n")
  else {
    if (rand() % 2 == 0)
      printf("Your cum went up and got into your mouth. I hope you like swallowing.");
  }
  printf("Your cum flew across the street and hit a 12yo girl that was showering. ");
  printf("It made her pregnant. ");
  printf("Get ready to have kids without ever having sex, bud.\n");
}

int main()
{
  penis my_penis;
  char command[100];

  /* get full of fluids (ready for action) */
  my_penis.bladder = 100;

  for (printf("enter help for help\n> "), scanf("%s", command);
       strcmp(command, "bye") != 0;
       printf("> "), scanf("%s", command)) {
    if (strcmp(command, "get hard") == 0) my_penis.getHard();
    else if (strcmp(command, "get soft") == 0) my_penis.soft();
    else if (strcmp(command, "cum") == 0) {
      if (my_penis.isHard()) {
        printf("oh yes\n");
        my_penis.soft();
      } else { printf("I gotta get hard first\n"); }
    }
    else if (strcmp(command, "piss") == 0) my_penis.piss(atoi(&command[6]));
    else if (strcmp(command, "help") == 0) {
      printf("commands:\npiss N   - piss N litters of piss.\n");
      printf("get hard - gets your penis ready for action\n");
      printf("get soft - gets your penis unready for action\n");
      printf("cum      - makes you spill god forsaken milk\n");
      printf("help     - gets you this help, you faggot\n");
      printf("bye      - quits\n");
    }
  }

  printf("loved to be of service\n\n);
  printf("hugs and kisses,\nyour penis\n");

  return 0;
}

Name: Anonymous 2008-09-09 3:00

  if (my_penis.bladder - litters < 0) { printf("I can't piss that much! return; }
Forgot your “'”.

Name: Anonymous 2008-09-09 3:14

>>15
I fixed it a bit (now it compiles and runs):


#include <stdio.h>
#include <string.h>
#include <stdlib.h>

typedef struct phallus {
  int bladder;
  int is_hard;
} penis;

void piss(penis my_penis, int litters)
{
  if (my_penis.bladder == 0) { printf("I'm all empty already\n"); return; }
  if (my_penis.bladder - litters < 0) { printf("I can't piss that much!"); return; }
  my_penis.bladder -= litters;
  if (rand() % 2 == 0) {
    if (rand() % 2 == 0)   
      printf("You can see a bird falling down cause it got hit by your piss\n");
    else
      printf("You killed a bee with your piss. Be proud.\n");
  }
  else {
    if (rand() % 2 == 0)
      printf("You put those %d litters into a cup and drunk it. Freak.\n", litters);
  }
  printf("You tried pissing on a girl walking down the street. ");
  printf("It turned out it was a tranvestite and it fucked you. ");
  printf("I hope you enjoyed it.\n");
}

void getHard(penis my_penis)
{
  if (my_penis.is_hard) printf("I'm already ready, you dumbtard.\n");
  else {
    my_penis.is_hard = 1;
    printf("I'm ready for action, sir!\n");
  }
}

void soft(penis my_penis)
{
  if (my_penis.is_hard) {
    my_penis.is_hard = 0;
    printf("I hate when a hard on gets away like this :(.\n");
  }
  else printf("You idiot, I'm already soft\n");
}

void cum(penis my_penis)
{
  if (!my_penis.is_hard) {
    printf("How the fuck you want to cum if your penis is soft? Fucker.\n");
    return;
  }
  soft(my_penis);
  if (rand() % 2 == 0) {
    if (rand() % 2 == 0)   
      printf("Your cum hit the wall and went right through it! Wow!\n");
    else
      printf("Your fapping incinerated your pants, but you still managed to cum.\n");
  }
  else {
    if (rand() % 2 == 0)
      printf("Your cum went up and got into your mouth. I hope you like swallowing.");
  }
  printf("Your cum flew across the street and hit a 12yo girl that was showering. ");
  printf("It made her pregnant. ");
  printf("Get ready to have kids without ever having sex, bud.\n");
}

int main()
{
  penis my_penis;
  char command[100];

  /* get full of fluids (ready for action) */
  my_penis.bladder = 100;
  /* get soft */
  my_penis.bladder = 0;

  for (printf("enter help for help\n> "), scanf("%s", command);
       strcmp(command, "bye") != 0;
       printf("> "), scanf("%s", command)) {
    if (strcmp(command, "get hard") == 0) getHard(my_penis);
    else if (strcmp(command, "get soft") == 0) soft(my_penis);
    else if (strcmp(command, "cum") == 0) {
      if (my_penis.is_hard) {
        printf("oh yes\n");
        soft(my_penis);
      } else { printf("I gotta get hard first\n"); }
    }
    else if (strcmp(command, "piss") == 0) {
           printf("this command doesn't work, fuck you and fix it.\n");
    }
    else if (strcmp(command, "help") == 0) {
      printf("commands:\npiss N   - piss N litters of piss.\n");
      printf("get hard - gets your penis ready for action\n");
      printf("get soft - gets your penis unready for action\n");
      printf("cum      - makes you spill god forsaken milk\n");
      printf("help     - gets you this help, you faggot\n");
      printf("bye      - quits\n");
    }
  }

  printf("loved to be of service\n\n");
  printf("hugs and kisses,\nyour penis\n");
  system("pause");

  return 0;
}

Name: Anonymous 2008-09-09 3:20

system("pause");
Kill yourself.

Name: Anonymous 2008-09-09 3:32

I had to try it on this shitty pc, that's why I added it

Name: Anonymous 2008-09-09 3:44

there, I fixed the piss command and took out the system("pause")
went around it ;P, just see it


#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>

typedef struct phallus {
  int bladder;
  int is_hard;
} penis;

void piss(penis *my_penis, int litters)
{
  if (my_penis->bladder == 0) { printf("I'm all empty already\n"); return; }
  if (my_penis->bladder - litters < 0) { printf("I can't piss that much!"); return; }
  my_penis->bladder -= litters;
  if (rand() % 2 == 0) {
    if (rand() % 2 == 0)   
      printf("You can see a bird falling down cause it got hit by your piss\n");
    else
      printf("You killed a bee with your piss. Be proud.\n");
  }
  else {
    if (rand() % 2 == 0)
      printf("You put those %d litters into a cup and drunk it. Freak.\n", litters);
  }
  printf("You tried pissing on a girl walking down the street. ");
  printf("It turned out it was a tranvestite and it fucked you. ");
  printf("I hope you enjoyed it.\n");
}

void getHard(penis *my_penis)
{
  if (my_penis->is_hard) printf("I'm already ready, you dumbtard.\n");
  else {
    my_penis->is_hard = 1;
    printf("I'm ready for action, sir!\n");
  }
}

void soft(penis *my_penis)
{
  if (my_penis->is_hard) {
    my_penis->is_hard = 0;
    printf("I hate when a hard on gets away like this :(.\n");
  }
  else printf("You idiot, I'm already soft\n");
}

void cum(penis *my_penis)
{
  if (!my_penis->is_hard) {
    printf("How the fuck you want to cum if your penis is soft? Fucker.\n");
    return;
  }
  my_penis->is_hard = 0;
  if (rand() % 2 == 0) {
    if (rand() % 2 == 0)   
      printf("Your cum hit the wall and went right through it! Wow!\n");
    else
      printf("Your fapping incinerated your pants, but you still managed to cum.\n");
  }
  else {
    if (rand() % 2 == 0)
      printf("Your cum went up and got into your mouth. I hope you like swallowing.");
  }
  printf("Your cum flew across the street and hit a 12yo girl that was showering. ");
  printf("It made her pregnant. ");
  printf("Get ready to have kids without ever having had sex, bud.\n");
}

char *getline()
{
  char *line, c;
  int i = 0;
 
  line = malloc(101 * sizeof(char));
  while ((c = fgetc(stdin)) != '\n' && i < 100)
    line[i++] = c;
  line[i] = '\0';
  return line;
}
 
 

int main()
{
  penis my_penis;
  char *command;

  /* get full of fluids (ready for action) */
  my_penis.bladder = 100;
  /* get soft */
  my_penis.is_hard = 0;

  for (printf("enter help for help\n> "), command = getline();
       strcmp(command, "bye") != 0;
       printf("> "), command = getline()) {
    if (strcmp(command, "get hard") == 0) getHard(&my_penis);
    else if (strcmp(command, "get soft") == 0) soft(&my_penis);
    else if (strcmp(command, "cum") == 0) cum(&my_penis);
    else if (strcmp(command, "piss") >= 0) {
      if (command[5] != '\0' && isdigit(command[5])) {
        piss(&my_penis, atoi(&command[5]));
      }
      else printf("Syntax error, dumbass. Read the help.\n");
    }
    else if (strcmp(command, "help") == 0) {
      printf("commands:\npiss N   - piss N litters of piss.\n");
      printf("get hard - gets your penis ready for action\n");
      printf("get soft - gets your penis unready for action\n");
      printf("cum      - makes you spill god forsaken milk\n");
      printf("help     - gets you this help, you faggot\n");
      printf("bye      - quits\n");
    }
    free(command);
  }

  printf("loved to be of service\n\n");
  printf("hugs and kisses,\nyour penis\n\n");
  printf("Press any key to continue\n");
  fgetc(stdin);

  return 0;
}


and that's how you implement a penis in C ISO 99

Name: Anonymous 2008-09-09 3:53

[quote]#define A.piss(B) piss(A,B)
#define A.getHard() getHard(A)
#define A.isHard() isHard(A)
#define A.soft() soft(A)
#define A.cum() cum(A)
#define A.getLitters() getLitters(A)
[/quote]
failed attempt fails

Name: Anonymous 2008-09-09 3:57

  printf("Your cum flew across the street and hit a 12yo girl that was showering. ");
  printf("It made her pregnant. ");
  printf("Get ready to have kids without ever having had sex, bud.\n");

lolwut

Name: Anonymous 2008-09-09 4:15

This is not enterprise enough. You can fix this by rewriting it in Java and use best practices.

Name: Anonymous 2008-09-09 4:18

[BBCPL]
[CREATE]penis[/CREATE]
[SETTYPE=OBJECT]penis[/SETTYPE]
[ATTRIBUTE=ejaculate][PRINT=stdout]"sperm flies all over the room"[/PRINT][/ATTRIBUTE]
[SETTATRB=ejaculate]penis[/SETTATRB]
[/BBCPL]
a practical application of the bbcode programming language.

Name: Anonymous 2008-09-09 5:01

'#define' considered appropriate for implementing object systems

Name: Anonymous 2008-09-09 5:04

>>19
Do you realise the bladder isn't actually part of the phallus in real life?

Name: Anonymous 2008-09-09 7:35

>>24
#define M(object, method, ...) ((object)->vtable->method((object), ##__VA_ARGS__))

>>25
Don't get lost in the metaphor, bro.

Name: Worshipper of /prog/-God 2008-09-09 8:16

>>19
You, sir, are GOD!I bow before your might!
If you can, would you do a vagina, too? For completeness sake.

Name: Anonymous 2008-09-09 11:32

I wouldn't mail RMS a swiss cheese, if you catch my drift.

Name: Anonymous 2008-09-09 11:37

Every single one of those printf outputs reminds me of the TI-82 programs I wrote in middle school :\

Name: Anonymous 2008-09-09 11:53

>>27
penis and vagina of course need to interact with one another, but for reusability's sake, they should accept any object with similar properties.  This would be an example of dick typing.

Name: Wor 2008-09-09 12:06

Name: Worshipper of /prog/-God 2008-09-09 12:08

>>31
WTF? Stupid Firefox.

>>30
Of course. We all know the picture of the dude who fucks his cars exhaust pipe.

Name: Anonymous 2008-09-09 14:06

>>27
what are the vagina's functionalities?
piss, bleed, get moist, get dry, and what?

Name: Anonymous 2008-09-09 14:09

>>33
Women get aroused, too. When a man get aroused their penis gets bigger. When a woman get aroused they get moist, the inner labias shrink and the outer labias get bigger.

Name: Anonymous 2008-09-09 14:18

>>34
Lies, all filthy lies.

Name: Anonymous 2008-09-09 14:50

>>33
Create a child class

Name: Anonymous 2008-09-09 15:00

>>33
>piss, bleed, get moist, get dry, and what?
Acts as a container for sand.

Name: Anonymous 2008-09-09 15:02

FUK DA SUSSMANITIES!

Name: Anonymous 2008-09-09 16:18

class object;

class Dick : public object;
vector< object* > vagina;
vagina.push_back( new Dick() );

class Centipede : public object;
vagina.push_back( new Centipede() );

Name: Anonymous 2008-09-10 9:22

bump

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List