Search:

Type: Posts; User: andyouf

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    923

    will do

    will do
  2. Replies
    7
    Views
    923

    Haha, yes Jim, I was trying to take all the...

    Haha, yes Jim, I was trying to take all the credit for this incredibly complex beginner C prog in order to impress all. I realize it is not good from to post duplicates.

    Anyway, I got my answer...
  3. Replies
    7
    Views
    923

    I got it, it was parameter error and me putting...

    I got it, it was parameter error and me putting calc in front of statements in calc function. Thank you.
  4. Replies
    7
    Views
    923

    Functions/Sub functions

    Hi, getting two small errors in lines 95 and 97 with semicolon but everything looks fine.
    The issue is that my program works fine without the "calc" and "printResult" functions but these are...
  5. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    My gosh these are such simple errors! I panic and...

    My gosh these are such simple errors! I panic and think it is some huge coding error or that I don't understand application of parameters (which I need to review, completely). Thank you!
    Onto...
  6. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    it does not compile...I am going to review your...

    it does not compile...I am going to review your #79 post and make sure I understand. I don't understand many of the compile errors I get so maybe this will help for future errors.
  7. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    yes, good point, not even compiling :) okay the...

    yes, good point, not even compiling :) okay the semicolon has been added and yes i need to quit thinking of this like a paper or something I can proofread after....i get declaration errors on lines...
  8. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    Besides adding "int minimum" to my function...

    Besides adding "int minimum" to my function declaration, I don't see what the compiler is telling me.
  9. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    Crashing like crazy, even on things that work in...

    Crashing like crazy, even on things that work in other instances of the program I have open. This is not in reference to "void" in reference to getting smallest # function to work.


    /* Prompts...
  10. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    Thank you, working on this.

    Thank you, working on this.
  11. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    On not putting return type as void in my function...

    On not putting return type as void in my function when I try changing that and the function declaration to void it kept crashing my IDE?
  12. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    I'm baffled, I've tried switching variables,...

    I'm baffled, I've tried switching variables, parameters.


    /* Prompts user and gets integer numbers from keyboard, one number at a time. Ends program when 99999 entered and displays various...
  13. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    This is maddening. I don't get why my...

    This is maddening. I don't get why my current_smallest function does not work.


    /* Prompts user and gets integer numbers from keyboard, one number at a time. Ends program when 99999 entered and...
  14. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    i just rewrote with your much more efficient...

    i just rewrote with your much more efficient code. That is brilliant and I see what you did and what was prevented. Now I'm upset that I have to take it out and make it a function. Or some of it.
  15. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    okay i see about the scope and proplem with...

    okay i see about the scope and proplem with something being +99999...that did not make sense and yes I need to start formatting properly from the beginning this is much easier to work with. My...
  16. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    I get it, thank you. The only thing I don't...

    I get it, thank you. The only thing I don't understand is why you use "number_ptr" instead of just "number" at the beginning of the function.


    /* Prompts user and gets integer numbers from...
  17. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    This was really helpful...thank you much.

    This was really helpful...thank you much.
  18. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    The code does not crash, but it outputs: "Enter...

    The code does not crash, but it outputs: "Enter next integer: minimum number is 99999"
  19. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    That's a great tip Salem, you're right and it is...

    That's a great tip Salem, you're right and it is confusing following both. Sry about that.
  20. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    Ok now it works but it is keeping a running tab...

    Ok now it works but it is keeping a running tab of the minimum integer ie enter "new integer...minimum is".....I was looking for Enter new integer to keep repeating and then program output after...
  21. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    actually if I change this printf("minimum number...

    actually if I change this printf("minimum number is %d\n"), minimum); to printf("minimum number is %d\n"), getNumber;

    the program does not crash put also won't display minimum number stmt.
  22. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    i get multiple errors when I try your if stmt....

    i get multiple errors when I try your if stmt. why do you initialize minimum to 99999?


    {
    int getNumber;
    int average;
    int sum = 0;
    int loop_count = 0;
    int minimum=99999;
  23. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    getNumber shld just take one address parameter so...

    getNumber shld just take one address parameter so that integer from keyboard is picked up...


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


    //function declarations
  24. Thread: Loops/Function

    by andyouf
    Replies
    1
    Views
    842

    Loops/Function

    I am trying to find a way to put a getSmallest function in here so that it will output smallest integer entered. If it is just an arbitrary amount of #'s and I don't know what will be entered I am...
  25. Thread: while loop

    by andyouf
    Replies
    82
    Views
    5,765

    My professor wants getNumber to be a function...

    My professor wants getNumber to be a function that takes in an address parameter so that the integer entered in keyboard is picked up. I have that down but I don't see how to make this a separate...
Results 1 to 25 of 56
Page 1 of 3 1 2 3