i mean its school related but this thingCode: [Select]#include <stdio.h>#include <stdlib.h>#include "cstack.h"#include "alg2rpn.h"#include "rpn_util.h"#include "rpn.h"#include "boolean.h"float alg2rpn(char my_string[]) { cstack top; char output[30]; int i = -1, j = 0, next_state = 0; float ans; init_cstack(&top); while (1) { switch(next_state) { case 0: i++; if (is_digit(my_string[i])) { next_state = 1; } else if (is_operator(my_string[i])) { next_state = 2; } else if (is_space(my_string[i])) { next_state = 7; } else if (my_string[i] == '(') { next_state = 3; } else if (my_string[i] == ')') { next_state = 4; } else if (is_end(my_string[i])) { next_state = 5; } else { next_state = 6; } break; /* If Digit */ case 1: while ((is_digit(my_string[i]) || (my_string[i] == '.'))) { output[j] = my_string[i]; j++; i++; } output[j] = ' '; j++; next_state = 0; break; /* If Operator */ case 2: while ((!c_is_empty(top)) && (is_operator(top -> data)) && prec(my_string[i]) <= prec(top -> data)) { output[j] = c_pop(&top); j++; output[j] = ' '; j++; } c_push(&top, my_string[i]); next_state = 0; break; /* If Left Parentheses */ case 3: c_push(&top, my_string[i]); next_state = 0; break; /* If Right Parentheses */ case 4: while (top -> data != '(') { output[j] = c_pop(&top); j++; output[j] = ' '; j++; } c_pop(&top); next_state = 0; break; case 5: while ((!c_is_empty(top)) && (is_operator(top -> data))) { output[j] = c_pop(&top); j++; output[j] = ' '; j++; } ans = rpn(output); return ans; break; /* Garbage */ case 6: return printf("Something went wrong\n"); exit; break; /* If space */ case 7: output[j] = my_string[i]; j++; next_state = 0; } }}
#include <stdio.h>#include <stdlib.h>#include "cstack.h"#include "alg2rpn.h"#include "rpn_util.h"#include "rpn.h"#include "boolean.h"float alg2rpn(char my_string[]) { cstack top; char output[30]; int i = -1, j = 0, next_state = 0; float ans; init_cstack(&top); while (1) { switch(next_state) { case 0: i++; if (is_digit(my_string[i])) { next_state = 1; } else if (is_operator(my_string[i])) { next_state = 2; } else if (is_space(my_string[i])) { next_state = 7; } else if (my_string[i] == '(') { next_state = 3; } else if (my_string[i] == ')') { next_state = 4; } else if (is_end(my_string[i])) { next_state = 5; } else { next_state = 6; } break; /* If Digit */ case 1: while ((is_digit(my_string[i]) || (my_string[i] == '.'))) { output[j] = my_string[i]; j++; i++; } output[j] = ' '; j++; next_state = 0; break; /* If Operator */ case 2: while ((!c_is_empty(top)) && (is_operator(top -> data)) && prec(my_string[i]) <= prec(top -> data)) { output[j] = c_pop(&top); j++; output[j] = ' '; j++; } c_push(&top, my_string[i]); next_state = 0; break; /* If Left Parentheses */ case 3: c_push(&top, my_string[i]); next_state = 0; break; /* If Right Parentheses */ case 4: while (top -> data != '(') { output[j] = c_pop(&top); j++; output[j] = ' '; j++; } c_pop(&top); next_state = 0; break; case 5: while ((!c_is_empty(top)) && (is_operator(top -> data))) { output[j] = c_pop(&top); j++; output[j] = ' '; j++; } ans = rpn(output); return ans; break; /* Garbage */ case 6: return printf("Something went wrong\n"); exit; break; /* If space */ case 7: output[j] = my_string[i]; j++; next_state = 0; } }}
i dunno gain some muscle so i don't look like a lollipop?
waiting for my little workshop to be accessible to me again so i can make a better box set up and carpet itSpoiler
6 page essay on NASA budget and my thoughts, 50 slide powerpoint on space race, measuring light pollution around the county, and something about binary stars, not sure tho.
Quote from: Dyle 911 on September 30, 2015, 03:00:21 PMwaiting for my little workshop to be accessible to me again so i can make a better box set up and carpet itSpoiler Nice is that A Yaris. I am finding it hard to figure what car is that 2 doors hatchback but not small like a smart car? Toyota Echo or Yaris? Oh that going to sound NICE. Oh your from Florida I love NASA and the space shuttle. RIP Challengers and Colombia
Quote from: XSEAN on September 30, 2015, 03:07:25 PMQuote from: Dyle 911 on September 30, 2015, 03:00:21 PMwaiting for my little workshop to be accessible to me again so i can make a better box set up and carpet itSpoiler Nice is that A Yaris. I am finding it hard to figure what car is that 2 doors hatchback but not small like a smart car? Toyota Echo or Yaris? Oh that going to sound NICE. Oh your from Florida I love NASA and the space shuttle. RIP Challengers and Colombiathat's not a yaris its a crossfiremy sister has a yaris tho
Quote from: Dyle 911 on September 30, 2015, 03:12:40 PMQuote from: XSEAN on September 30, 2015, 03:07:25 PMQuote from: Dyle 911 on September 30, 2015, 03:00:21 PMwaiting for my little workshop to be accessible to me again so i can make a better box set up and carpet itSpoiler Nice is that A Yaris. I am finding it hard to figure what car is that 2 doors hatchback but not small like a smart car? Toyota Echo or Yaris? Oh that going to sound NICE. Oh your from Florida I love NASA and the space shuttle. RIP Challengers and Colombiathat's not a yaris its a crossfiremy sister has a yaris tho Now I know why I could not place it. I dislike those car alot.
Quote from: XSEAN on September 30, 2015, 03:16:18 PMQuote from: Dyle 911 on September 30, 2015, 03:12:40 PMQuote from: XSEAN on September 30, 2015, 03:07:25 PMQuote from: Dyle 911 on September 30, 2015, 03:00:21 PMwaiting for my little workshop to be accessible to me again so i can make a better box set up and carpet itSpoiler Nice is that A Yaris. I am finding it hard to figure what car is that 2 doors hatchback but not small like a smart car? Toyota Echo or Yaris? Oh that going to sound NICE. Oh your from Florida I love NASA and the space shuttle. RIP Challengers and Colombiathat's not a yaris its a crossfiremy sister has a yaris tho Now I know why I could not place it. I dislike those car alot.its been good to me, corners pretty damn fine and it can drift when you want it to
Quote from: Dyle 911 on September 30, 2015, 03:18:22 PMQuote from: XSEAN on September 30, 2015, 03:16:18 PMQuote from: Dyle 911 on September 30, 2015, 03:12:40 PMQuote from: XSEAN on September 30, 2015, 03:07:25 PMQuote from: Dyle 911 on September 30, 2015, 03:00:21 PMwaiting for my little workshop to be accessible to me again so i can make a better box set up and carpet itSpoiler Nice is that A Yaris. I am finding it hard to figure what car is that 2 doors hatchback but not small like a smart car? Toyota Echo or Yaris? Oh that going to sound NICE. Oh your from Florida I love NASA and the space shuttle. RIP Challengers and Colombiathat's not a yaris its a crossfiremy sister has a yaris tho Now I know why I could not place it. I dislike those car alot.its been good to me, corners pretty damn fine and it can drift when you want it to There just a Mercedes-Benz SLK-Class (R170)With a different body style to them. I had to fix them alot and the 3.2L regular or the 3.2 Mercedez AMG are both very troublesome to work on
Trying to get fit... Or at least just get healthier. Down 15 And learn how to code real goods.Edit: also body work is an impressive skill. My fiancé does body modification. It's not easy.
Quote from: XSEAN on September 30, 2015, 03:25:12 PMQuote from: Dyle 911 on September 30, 2015, 03:18:22 PMQuote from: XSEAN on September 30, 2015, 03:16:18 PMQuote from: Dyle 911 on September 30, 2015, 03:12:40 PMQuote from: XSEAN on September 30, 2015, 03:07:25 PMQuote from: Dyle 911 on September 30, 2015, 03:00:21 PMwaiting for my little workshop to be accessible to me again so i can make a better box set up and carpet itSpoiler Nice is that A Yaris. I am finding it hard to figure what car is that 2 doors hatchback but not small like a smart car? Toyota Echo or Yaris? Oh that going to sound NICE. Oh your from Florida I love NASA and the space shuttle. RIP Challengers and Colombiathat's not a yaris its a crossfiremy sister has a yaris tho Now I know why I could not place it. I dislike those car alot.its been good to me, corners pretty damn fine and it can drift when you want it to There just a Mercedes-Benz SLK-Class (R170)With a different body style to them. I had to fix them alot and the 3.2L regular or the 3.2 Mercedez AMG are both very troublesome to work onyeah they're pretty similar, but by no means are they hard to work on lol. easier than most mercs
Quote from: Kitsunekun on September 30, 2015, 03:28:31 PMTrying to get fit... Or at least just get healthier. Down 15 And learn how to code real goods.Edit: also body work is an impressive skill. My fiancé does body modification. It's not easy. Wait your a girl? OT: Nice tattoo, if I was going to ever get one i would get this Coding fun
Quote from: XSEAN on September 30, 2015, 05:14:02 PMQuote from: Kitsunekun on September 30, 2015, 03:28:31 PMTrying to get fit... Or at least just get healthier. Down 15 And learn how to code real goods.Edit: also body work is an impressive skill. My fiancé does body modification. It's not easy. Wait your a girl? OT: Nice tattoo, if I was going to ever get one i would get this Coding funSon, where do you see a tattoo in this picture?
Quote from: DAS r00d d00d B00T on September 30, 2015, 05:17:56 PMQuote from: XSEAN on September 30, 2015, 05:14:02 PMQuote from: Kitsunekun on September 30, 2015, 03:28:31 PMTrying to get fit... Or at least just get healthier. Down 15 And learn how to code real goods.Edit: also body work is an impressive skill. My fiancé does body modification. It's not easy. Wait your a girl? OT: Nice tattoo, if I was going to ever get one i would get this Coding funSon, where do you see a tattoo in this picture?I do have a tattoo but it's not showing in this picture. >.> I want to get more soon.
Quote from: Kitsunekun on September 30, 2015, 05:18:46 PMQuote from: DAS r00d d00d B00T on September 30, 2015, 05:17:56 PMQuote from: XSEAN on September 30, 2015, 05:14:02 PMQuote from: Kitsunekun on September 30, 2015, 03:28:31 PMTrying to get fit... Or at least just get healthier. Down 15 And learn how to code real goods.Edit: also body work is an impressive skill. My fiancé does body modification. It's not easy. Wait your a girl? OT: Nice tattoo, if I was going to ever get one i would get this Coding funSon, where do you see a tattoo in this picture?I do have a tattoo but it's not showing in this picture. >.> I want to get more soon. I umm Dafeeling when you mistake OP Top/Boobs are her arm and think the pattern is a tattoo XD
Quote from: XSEAN on September 30, 2015, 05:23:50 PMQuote from: Kitsunekun on September 30, 2015, 05:18:46 PMQuote from: DAS r00d d00d B00T on September 30, 2015, 05:17:56 PMQuote from: XSEAN on September 30, 2015, 05:14:02 PMQuote from: Kitsunekun on September 30, 2015, 03:28:31 PMTrying to get fit... Or at least just get healthier. Down 15 And learn how to code real goods.Edit: also body work is an impressive skill. My fiancé does body modification. It's not easy. Wait your a girl? OT: Nice tattoo, if I was going to ever get one i would get this Coding funSon, where do you see a tattoo in this picture?I do have a tattoo but it's not showing in this picture. >.> I want to get more soon. I umm Dafeeling when you mistake OP Top/Boobs are her arm and think the pattern is a tattoo XDMeh I can get that.