Search:

Type: Posts; User: CommonTater

Search: Search took 0.12 seconds.

  1. Guys... very interesting discussion... but how's...

    Guys... very interesting discussion... but how's this helping the OP?
  2. Like this... strcpy(temp2,...

    Like this...



    strcpy(temp2, word[i]);
    strcpy(word[i], word[j]);
    strcpy(word[j], temp2);


    STRING temp2 = " ."; is an error just use STRING temp2;
  3. Actually that's a linked list...

    Actually that's a linked list...
  4. About the only big improvement our new friend...

    About the only big improvement our new friend could make would be to use structs...


    typedef struct t_WordList
    { char text[32];
    int uses; }
    WordList, *pWordList;

    WordList...
  5. Well yes you can and no you can't... There's a...

    Well yes you can and no you can't... There's a lot of overhead in your method...


    word[100][20]

    This gives you space for 100 strings, each of which can be 20 characters long.

    When working...
  6. Pelles C will work on that machine... It only...

    Pelles C will work on that machine... It only needs about 300megs...

    Yep that's how the swap works... now keep in mind that at the same time you're sorting your counts you also need to sort the...
  7. That's kind of the idea... you would have to...

    That's kind of the idea... you would have to customize a bit and you still need to use an intermediate value to prevent overwrites...

    What kind of dinosaur is your laptop... Is it Windows? If so...
  8. LOL.. it would be fun to unleash that on the...

    LOL.. it would be fun to unleash that on the Encylopedia Britannica...
  9. Very close... it will probably work, but I...

    Very close... it will probably work, but I generally like to try to simplify code whenever possible, so you could do this...


    for(i=0; i<counter; i++){ //check if s is already there
    ...
  10. Well the error messages would have been from the...

    Well the error messages would have been from the compiler you're using... if you post them I'll help you interpret them.

    Yes the strcpy() method with a real array will do the job... at least you...
  11. Double Header... Hi Maz!

    Double Header... Hi Maz!
  12. Ok... first mistake, and your compiler should be...

    Ok... first mistake, and your compiler should be complaining wildly about it... You cannot assign strings across the equals sign in C ... C is a programming language with no inherrent knowledge of...
Results 1 to 12 of 12