Search:

Type: Posts; User: MikeyIckey

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    41
    Views
    10,888

    I never got a chance to thank him...

    I never got a chance to thank him...
  2. Replies
    19
    Views
    3,122

    I think you may be the only person to have made...

    I think you may be the only person to have made this sad waste of server space make me smile.

    Thank you!
    :D
  3. Replies
    19
    Views
    3,122

    Leave. Now.

    Leave. Now.
  4. Replies
    8
    Views
    31,853

    Also, I noticed that you have the function after...

    Also, I noticed that you have the function after main(), which is OK, but you don't have a function prototype anywhere stating that you're going to have a function called "calculateCharges". If it...
  5. Replies
    12
    Views
    2,642

    so, for pure readability, you're not a fan?

    so, for pure readability, you're not a fan?
  6. Replies
    12
    Views
    2,642

    yeah, i liked that too.

    yeah, i liked that too.
  7. Replies
    12
    Views
    2,642

    That's some pretty impressive functionality,...

    That's some pretty impressive functionality, actually.
  8. Replies
    12
    Views
    2,642

    OK, Mr. Naung, you've convinced me. That's a...

    OK, Mr. Naung, you've convinced me. That's a pretty interesting (and useful) use of the ? operator!
    Thanks for everyone's replies.
    -M
  9. Replies
    12
    Views
    2,642

    No, it's an interesting way to branch code. I...

    No, it's an interesting way to branch code. I just learned about it about (even though I think it's been in the C spec since K&R ansi c) so I was just wondering how often people see it, is it...
  10. Replies
    12
    Views
    2,642

    ? operator...

    The "?" conditional operator, for those that aren't aware, acts very much like a an if...else statement:

    z = (x>y) ? x : y;
    is similar to


    if (x > y)
    z = x;
    else
    z = y;
  11. It kind of looks like you're trying to do a...

    It kind of looks like you're trying to do a bubble sort.
  12. Replies
    160
    Views
    1,221,827

    Sticky: C Primer Plus...

    C Primer Plus, It covers C99.
  13. The option to force GCC to use the C99 standard...

    The option to force GCC to use the C99 standard is "-std=c99" I believe.
    You should confirm with your man pages.
  14. Replies
    3
    Views
    1,364

    Hey! I thought you might like to take a look at...

    Hey!
    I thought you might like to take a look at Beej's guide to C programming.
    Also, if you need a book, the forum members have a really extensive list of books in the sticky post at the top of the...
  15. Replies
    3
    Views
    1,700

    Also, void main(void) is bad. here's why...

    Also,
    void main(void)
    is bad.
    here's why
    Sorry to be a bit off topic I know it's not related to your question.
  16. Replies
    16
    Views
    3,253

    why would I remove that? I'm multiplying 3 times...

    why would I remove that? I'm multiplying 3 times the value of num1.
  17. Replies
    16
    Views
    3,253

    So the way I did it, i was playing with the...

    So the way I did it, i was playing with the address not the value, correct?
  18. Replies
    16
    Views
    3,253

    I thought that because it is an array of pointers...

    I thought that because it is an array of pointers it would be easier to use pointers to use it.
    Or I'm just so anxious to write really sophisticated programs I blindly decided to use pointers where...
  19. Replies
    16
    Views
    3,253

    I thought I needed to use pointers because I was...

    I thought I needed to use pointers because I was using argv.
  20. Replies
    16
    Views
    3,253

    Hehe, well I was always curious about how the...

    Hehe, well I was always curious about how the wheel worked.
    I thought I was taking integers from the command line.
    Am I not?
  21. Replies
    16
    Views
    3,253

    Still more problems with argv and argc

    I know I've posted this code a couple of times now so I feel really stupid asking again for help but the requirements for the challenge that I'm working on changed a little bit on me.

    What I now...
  22. Ooooooh. I get it! Man I feel stupid, I should...

    Ooooooh. I get it!
    Man I feel stupid, I should have seen that!
    Thank you so much.
  23. I've run the code through a debugger and made the...

    I've run the code through a debugger and made the above changes (thanks again, my head was about to explode). The guts of the code work, but it never stops the loop when it's equal to one. When I run...
  24. Ok, I need argv[1] and argv[2], then, and to...

    Ok, I need argv[1] and argv[2], then, and to convert those to an integer.
    Thank you. I'll see what happens.
  25. Program segfaults passing information from the command line

    I have another problem with command line arguments.
    But this time I'm mostly convinced that it's how I've set it up.
    This program takes two numbers from the command line. The first and presumably...
Results 1 to 25 of 119
Page 1 of 5 1 2 3 4