Search:

Type: Posts; User: friedsandwich

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,064

    Help with fflush(stdin)

    here is my code, it allows an equation such as 5+(6-2)*2^3/4-10 to be solved using order of operations, but i heard that the fflush(stdin) function is incorrect to use. what should i be using...
  2. Replies
    18
    Views
    18,673

    Thank you for this comment, It helped me...

    Thank you for this comment, It helped me understand the real problem. I should be addressing this problem in my other post.
  3. Replies
    18
    Views
    18,673

    so what? i created a new code entirely to do that...

    so what? i created a new code entirely to do that standard arithmetic equation and then tried to combine the two codes together without rewriting the entire code. if you arent helping and just...
  4. Replies
    18
    Views
    18,673

    take a look at my pastebin, it has a lot of extra...

    take a look at my pastebin, it has a lot of extra functions that i did not paste onto this page, none of that is the problem, the only problem i am having is with my case statements not going back to...
  5. Replies
    18
    Views
    18,673

    it's really long i dont know for sure where its...

    it's really long i dont know for sure where its happening that's why i did a pastebin


    do
    {
    printf("\nMichael's Calculator\n");
    printf("\nChoose what calculation to perform\n");...
  6. Replies
    18
    Views
    18,673

    Help with my switch statements

    [C] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> - Pastebin.com

    i dont know what's going on here. if I perform "choice" 1 first at least once, my program and menu...
  7. Replies
    55
    Views
    12,426

    hmm... that would be an awesome option, but no...

    hmm... that would be an awesome option, but no idea how to implement that...
  8. Replies
    55
    Views
    12,426

    this worked. :)

    this worked. :)
  9. Replies
    55
    Views
    12,426

    I am using Pelles C, I use this because this is...

    I am using Pelles C, I use this because this is the one we use at school.
  10. Replies
    55
    Views
    12,426

    That is what i've been saying.... i have the...

    That is what i've been saying.... i have the math.h header file included and the M_PI does not work... i cant explain this any more clear than i already have.

    "error #2048: Undeclared identifier...
  11. Replies
    55
    Views
    12,426

    is it really that hard just to scroll through my...

    is it really that hard just to scroll through my code and see what im talking about?

    case 5:
    {
    printf("\nArea Of A Circle\n");
    printf("\nEnter the...
  12. Replies
    55
    Views
    12,426

    I get the error if i delete #define PI 3.14159...

    I get the error if i delete #define PI 3.14159 and then anywhere i have used my defined PI i replace with M_PI it tells me that M_PI has not been defined as a variable. (obviously in my area...
  13. Replies
    55
    Views
    12,426

    there is no error and my areas work fine. the...

    there is no error and my areas work fine. the only problem was when i tried to use the M_PI in place of my defined PI value, which isn't a big deal anyways. my teacher wants me to write my own code...
  14. Replies
    55
    Views
    12,426

    oh geez, sorry that my formatting was messed up...

    oh geez, sorry that my formatting was messed up while pulling this code of my gmail drive.....
    #include <stdio.h>
    #include <math.h>
    #define PI 3.14159

    int main(void)
    {
    double sum,...
  15. Replies
    55
    Views
    12,426

    sure thing #include #include ...

    sure thing
    #include <stdio.h>
    #include <math.h>
    #define PI 3.14159

    int main(void)
    {
    double sum, first_Num, sec_Num, third_Num,
    diff, product, quotient, srt, area, rad1, rad2, base, height;...
  16. Replies
    55
    Views
    12,426

    I have the math.h included......?

    I have the math.h included......?
  17. Replies
    55
    Views
    12,426

    I use pelles because thats what we use at school....

    I use pelles because thats what we use at school. Wouldn't mind getting familiarized with another compiler though. Thanks for the suggestion ill try it out
  18. Replies
    55
    Views
    12,426

    Pelles c

    Pelles c
  19. Replies
    55
    Views
    12,426

    didnt know about that. good idea! hmmm my...

    didnt know about that. good idea!


    hmmm my compiler isnt allowing M_PI as a constant?
  20. Replies
    55
    Views
    12,426

    yeah that's what i don't like about my code. the...

    yeah that's what i don't like about my code. the fact that you can only do 1 operation kinda makes it less useful if i have an equation to solve. the best part of my code, imo, is the formulas for...
  21. Replies
    55
    Views
    12,426

    I'm thinking of adding volume formulas too. maybe...

    I'm thinking of adding volume formulas too. maybe a way to find the factors of a number but i'm not sure yet how to do that...
  22. Replies
    55
    Views
    12,426

    here is my code any suggestions on what i should...

    here is my code any suggestions on what i should add?
    all input is much appreciated!!



    #include <stdio.h>
    #include <math.h>
    #define PI 3.14159
  23. Replies
    55
    Views
    12,426

    HA HA HA oh man i feel stupid. yeah i forgot the...

    HA HA HA oh man i feel stupid. yeah i forgot the damn ampersand. the compiler wasn't giving me any errors that's why i was so confused! thanks for correcting my stupidity!
  24. Replies
    55
    Views
    12,426

    I found the problem, had to declare all my...

    I found the problem, had to declare all my variables as doubles instead of int except for choice. now I'm having problems inside my 8th case statement which opens a new menu of different shapes to...
  25. Replies
    55
    Views
    12,426

    yeah we learned about pointers this past week......

    yeah we learned about pointers this past week... how would i implement them in this situation?
    since a switch statement doesnt allow the use of double do i need to change the whole code to nested if...
Results 1 to 25 of 40
Page 1 of 2 1 2