Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cxfhvxgkcf-56:7

Pages: 1 ... 99100101 102103 ... 517
3001
The Flood / Re: here's what a RPN calculator looks like
« on: September 24, 2015, 11:47:29 AM »
I txted this to my brother and he called it "sloppy shit"
That lying shit

I bet he is a java or c++ nigger
lol butt-blasted

but really though it looks fine to me
I'm pretty OCD about my indentations and everything being lined up properly

3002
The Flood / Re: here's what a RPN calculator looks like
« on: September 24, 2015, 11:08:39 AM »
I txted this to my brother and he called it "sloppy shit"
That lying shit

I bet he is a java or c++ nigger

3003
Serious / Re: How do you feel about the pope speaking to congress?
« on: September 24, 2015, 10:58:37 AM »
it's not like he's making any laws

3004
The Flood / Re: here's what a RPN calculator looks like
« on: September 24, 2015, 10:42:43 AM »
Is this hacking
I have in fact infiltrated the NSA numerous times with this program

3005
The Flood / Re: where's the september 23rd guy?
« on: September 23, 2015, 11:40:32 PM »
lol jokes on you guys. he was just counting down to his suicide

3006
The Flood / here's what a RPN calculator looks like
« on: September 23, 2015, 11:34:39 PM »
made by yours truly, nearly shit myself in the process

Code: [Select]
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "boolean.h"
#include "fstack.h"
#include "util.h"

float rpn (char my_string[]) {
  fstack top;
  float num1, num2, num3, ans1, ans2;
  char temp[20];
  int i = -1, j = -1, next_state = 0;
  init_fstack(&top);

 while (1) {
switch(next_state) {
  case 0: i++;
  if (is_operator(my_string[i])) {
next_state = 1;
  }
  else if (is_digit(my_string[i])) {
next_state = 2;
  }
  else if (is_space(my_string[i])) {
next_state = 4;
  }
  else if (is_end(my_string[i])) {
next_state = 5;
  }
  else {
next_state = 6;
  }
    break;
 
  /* Found Operator */
  case 1: if (!is_empty(top)) {
          num2 = f_pop(&top);
}
          if (!is_empty(top)) {
  num1 = f_pop(&top);
}
     switch(my_string[i]) {
case '+': ans1 = num1 + num2;
f_push(&top, ans1);
break;
case '-': ans1 = num1 - num2;
f_push(&top, ans1);
break;
case '*': ans1 = num1*num2;
f_push(&top, ans1);
break;
case '/': ans1 = num1/num2;
f_push(&top, ans1);
break;
}
   next_state = 0;
    break;
 
  /* Found Digit */
  case 2: temp[j] = my_string[i];
  j++;
  i++;
  f_push(&top, my_string[i]);

  if (is_digit(my_string[i])) {
     next_state = 2;
  }
  else {
     next_state = 3;
  }
    break;
 
  /* Found end of number */
  case 3: temp[j] = '\0';
  sscanf(temp, "%f", &num3);
  f_push(&top, num3);
  j = 0;
  i--;
  next_state = 0;
    break;

/* Found Space */
  case 4: next_state = 0;
    break;
 
  /* Found end of string */
  case 5: ans2 = f_pop(&top);
   return printf("Answer is %.3f\n", ans2);
    break;

  case 6: return printf("Something went wrong\n");
    exit;
    break;
}
    }
}

there's obviously some other files that i'm not including but for the sake of this post i'll give you just this, its most of it.

3007
The Flood / Re: i'm not the only one here who unironically hates jews right?
« on: September 23, 2015, 11:10:20 PM »
Good for you?

Go take care of Israel then.
only in my wettest dreams

3008
The Flood / i'm not the only one here who unironically hates jews right?
« on: September 23, 2015, 11:05:39 PM »
like i see people say it a lot but i think they're joking usually

no i actually hate jews

a lot

3009
Serious / Re: Best and worst presidents/prime ministers?
« on: September 23, 2015, 10:53:04 PM »
also best future president:

GARY JOHNSON
A
R
Y

J
O
H
N
S
O
N


3010
The Flood / Re: watching a bill burr special because everyone likes this guy
« on: September 23, 2015, 10:48:01 PM »
he's an okay comedian, nothing fantastic

3011
Serious / Re: Best and worst presidents/prime ministers?
« on: September 23, 2015, 08:55:14 PM »
Wilson
he didn't even live long enough to fuck anything up, tbh

cut him some slack lol
wut

he served two terms

3012
The Flood / Re: Songs that are better than their originals
« on: September 23, 2015, 08:50:29 PM »
i knew that johnny cash post was gonna trigger the fuck out of verb

3013
Serious / Re: Best and worst presidents/prime ministers?
« on: September 23, 2015, 07:51:57 PM »
what's with the carter hate

i don't know much about him tbh

i mean, he can't be worse than any of the ones i mentioned
he had some god awful foreign policy and handled the economic crash of the 70's in a terrible manner.

3014
Serious / Re: "It's all the West's fault"
« on: September 23, 2015, 06:59:58 PM »
The US was bettering Iran

Sure the Shash was a tyrant but at least he was trying to Westernize the country instead of turning it into even more of a fundamentalist shit hole. Much better of an option than Khomeini.
Do you even know who Mossadegh is? Or is your knowledge of Iran confined to to the Shah and Khomeini?
actually wasn't aware of that. read his wikipedia article, i see what you mean.

3015
Serious / Re: "It's all the West's fault"
« on: September 23, 2015, 06:38:18 PM »
The US was bettering Iran

Sure the Shash was a tyrant but at least he was trying to Westernize the country instead of turning it into even more of a fundamentalist shit hole. Much better of an option than Khomeini.

3016
The Flood / guess what came in the mail today
« on: September 23, 2015, 06:09:06 PM »


ORIGINAL PRESSING
R
I
G
I
N
A
L

P
R
E
S
S
I
N
G

3017
The Flood / Re: You now are your avatar, how screwed are you?
« on: September 23, 2015, 05:38:32 PM »
yeah tbh I got the best deal here
wrong tbh fam

3018
The Flood / Re: You now are your avatar, how screwed are you?
« on: September 23, 2015, 05:26:56 PM »
this is all i ever wanted

3019
The Flood / Re: All too easy
« on: September 23, 2015, 04:51:26 PM »
Oh boy this thread is still a thing

3020
The Flood / Re: post your legs ITT
« on: September 23, 2015, 04:26:51 PM »


Driving currently

3021
The Flood / Re: Anyone going to see the pope this week?
« on: September 23, 2015, 03:28:42 PM »
Fuck no.
I hope I don't have to deal with anything fucking stupid when I fly back in to PHL Saturday night.
Unlimited altar boys though

3022
The Flood / Re: Animals you used to kill when you were a child
« on: September 23, 2015, 02:26:58 PM »
Blacks

3023
Serious / Re: "It's all the West's fault"
« on: September 23, 2015, 02:26:00 PM »
WW1
WW2
The Korean War
The Vietnam War
The Gulf War
The Iraq War
The Afghani War
The Syrian Conflict
You must have failed high school history

3024
Serious / Re: Man "shot by pupies"
« on: September 23, 2015, 01:55:08 PM »
Fucking pussies can't handle giving an animal a humane, clean death

3025
Serious / Re: Russians are going hot in Syria
« on: September 23, 2015, 12:50:33 PM »
I hope Putin just cleans fucking house. Then I hope he starts trying to take control of countries and gets the US's attention so I can take a vacation to the peninsula and kill me some commies

3026
The Flood / Re: just had Whataburger for the first time
« on: September 23, 2015, 12:47:58 PM »
It's my favorite burger join next to In N Out

That spicy ketchup is the nectar of the gods my friend

3027
The Flood / Re: Do you ever go back and read old PMs?
« on: September 23, 2015, 10:44:21 AM »
Sometimes I do on here. All the hate PMs from Dustbin Rose make me lol

3028
Serious / Re: Man "shot by pupies"
« on: September 23, 2015, 06:46:46 AM »
Already knew it was going to be Florida before I even opened the thread

3029
The Flood / fuck reverse polish notation
« on: September 22, 2015, 10:17:02 PM »
FUCKING SHIT
U
C
K
I
N
G

S
H
I
T

3030
The Flood / Re: if Sep7agon was a small town
« on: September 22, 2015, 10:14:37 PM »
can i own a brothel?

Pages: 1 ... 99100101 102103 ... 517