Search:

Type: Posts; User: quzah

Page 1 of 20 1 2 3 4

Search: Search took 0.09 seconds.

  1. There are lots of ways to do this. if( number >...

    There are lots of ways to do this.
    if( number > 999 & number < 10000 )
    ... do four digit stuff
    if( number > 9999 && number < 10000 )
    ... do five digit stuffYou could always just read it...
  2. Replies
    8
    Views
    1,310

    Shuffle the desk. Use a counter to keep track of...

    Shuffle the desk. Use a counter to keep track of where the "top" of the deck is. Start it at 0. Deal one card by assigning deck[ counter ] to whomever is getting that card. Then increment counter....
  3. Replies
    7
    Views
    801

    z = x * y; Quzah.

    z = x * y;


    Quzah.
  4. Replies
    5
    Views
    1,016

    How about you write a small test program to find...

    How about you write a small test program to find out? One that actually fully compiles and runs.


    Quzah.
  5. Replies
    5
    Views
    1,016

    Then read the bitwise operator FAQ. Quzah.

    Then read the bitwise operator FAQ.


    Quzah.
  6. First of all, when you use "first of all", there...

    First of all, when you use "first of all", there needs to be a second or next thing. Next, this has nothing to do with it being a varadic function, and everything to do with the format specifier he's...
  7. "1200" isn't an integer. It's a string literal....

    "1200" isn't an integer. It's a string literal. Lose the quotes if you want the number 1200, and just put 1200.


    Quzah.
  8. Replies
    7
    Views
    6,170

    Why don't you just learn assembly if you want to...

    Why don't you just learn assembly if you want to know what it's really doing?


    Quzah.
  9. Replies
    3
    Views
    1,915

    Make a program that reads entries from a file one...

    Make a program that reads entries from a file one at a time until it reaches the end. Once you can do that, make a program read entries one at a time, and then it copies the one it has just read into...
  10. You could say "programming in C". Quzah.

    You could say "programming in C".


    Quzah.
  11. Replies
    38
    Views
    2,745

    It doesn't add it, you do when you hit enter. It...

    It doesn't add it, you do when you hit enter. It simply leaves it there.


    Quzah.
  12. Replies
    38
    Views
    2,745

    for (long i=0; i

    for (long i=0; i<5e8; i++);


    Quzah.
  13. Thread: Slight Confusion

    by quzah
    Replies
    38
    Views
    2,758

    Go read my post again. I didn't ask what...

    Go read my post again. I didn't ask what RoomNumbers was. I asked what RoomNumber was.


    Quzah.
  14. Thread: Slight Confusion

    by quzah
    Replies
    38
    Views
    2,758

    What is 'RoomNumber'? You have 'RoomNumbers, but...

    What is 'RoomNumber'? You have 'RoomNumbers, but I don't see 'RoomNumber':
    Room_x[RoomNumber] = 'X';If you switch that out to be i, at that point you will be out of range of what your array is...
  15. Replies
    17
    Views
    1,702

    Even if he did take back his solution as if he...

    Even if he did take back his solution as if he didn't actually write it, we're back to square one. He needs to post his new attempt. He's still telling everyone to give him the answer. If we ignore...
  16. fgets + sscanf FAQ > How do I get a number...

    fgets + sscanf

    FAQ > How do I get a number from the user (C) - Cprogramming.com
    FAQ > Get a line of text from the user/keyboard (C) - Cprogramming.com


    Quzah.
  17. Replies
    5
    Views
    1,037

    Is there any reason you just dumped a bunch of...

    Is there any reason you just dumped a bunch of code here (tagged wrong) with no question or other text of any kind?


    Quzah.
  18. Replies
    6
    Views
    900

    Have you learned about structures yet? Quzah.

    Have you learned about structures yet?


    Quzah.
  19. Thread: rank

    by quzah
    Replies
    14
    Views
    1,538

    #includeThat's pretty much all you...

    #include<stdhomework.h>That's pretty much all you need for this. Isn't C great?


    Quzah.
  20. Replies
    4
    Views
    1,154

    I'm going to assume this is C++. Otherwise,...

    I'm going to assume this is C++. Otherwise, someone in this thread loves function pointers.


    Quzah.
  21. Thread: fgets help

    by quzah
    Replies
    4
    Views
    993

    That's because you're storing it all in the same...

    That's because you're storing it all in the same place. If you want the next call to go somewhere else, put it somewhere else. Switching to fread isn't going to change that.


    Quzah.
  22. Replies
    11
    Views
    1,205

    So you don't actually want to learn anything, you...

    So you don't actually want to learn anything, you just want someone to do it for you? Ok, cya.


    Quzah.
  23. Replies
    7
    Views
    1,032

    Read: FAQ > Get a line of text from the...

    Read: FAQ > Get a line of text from the user/keyboard (C) - Cprogramming.com


    Quzah.
  24. Replies
    11
    Views
    1,205

    FILE *ofp = fopen("roster.txt", "w");That is...

    FILE *ofp = fopen("roster.txt", "w");That is going to start with a new file every time (in effect) because it truncates the file when you open it to w mode.

    fprintf(ofp, "%s\n",...
  25. Replies
    4
    Views
    1,406

    C99 allows for variable length arrays:...

    C99 allows for variable length arrays: https://en.wikipedia.org/wiki/Variable-length_array


    Quzah.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4