Search:

Type: Posts; User: nellosmomishot

Search: Search took 0.01 seconds.

  1. Replies
    28
    Views
    4,251

    okay, i'm wicked close now. It keeps correct...

    okay, i'm wicked close now. It keeps correct count of all the words, outputs them correctly. But now it goes into an infinite loop after it prints out the output. I'm almost positive that the loop is...
  2. Replies
    28
    Views
    4,251

    I'm not quite sure what you mean by keep track of...

    I'm not quite sure what you mean by keep track of the buffer, what I need to do is see how many times every word in the string appears and the only way that I was able to figure out how to attempt to...
  3. Replies
    28
    Views
    4,251

    I changed it around a little more (the updated...

    I changed it around a little more (the updated code is in my post a couple back). Now it goes into an infinite loop any time that I enter a word more than once
  4. Replies
    28
    Views
    4,251

    even using strcmp to compare my strings it isn't...

    even using strcmp to compare my strings it isn't working. Is there something wrong with my function that creates the two dimensional array? (void createnewarray) I want it to store 1 word on each...
  5. Replies
    28
    Views
    4,251

    wow thanks, that fixed a problem, i'm updating my...

    wow thanks, that fixed a problem, i'm updating my code to show the changes. It doesn't print the words multiple times anymore, but it doesn't add them up still. this is my output now:

    Input the...
  6. Replies
    28
    Views
    4,251

    I'm not quite sure how to remedy the situation,...

    I'm not quite sure how to remedy the situation, how exactly can I fix that? I'm assuming I need a break statement somewhere but I don't know where.
  7. Replies
    28
    Views
    4,251

    yea I added a couple of newwordcounter++ in there...

    yea I added a couple of newwordcounter++ in there in my edited post, what do you mean that my array indeces are getting off?
  8. Replies
    28
    Views
    4,251

    I tweaked it a bit more and now it doesnt flip...

    I tweaked it a bit more and now it doesnt flip out when I enter more than one word (the changes are in my post 3 posts up), but it still gives crap results. here is what it sais when I have more than...
  9. Replies
    28
    Views
    4,251

    this is what i get for input when I enter 1 word,...

    this is what i get for input when I enter 1 word, then when I enter more than one word

    1 word:
    Input the text to be tested:
    why
    ^Z

    There are 1 words in the text.
    The shortest word has 3...
  10. Replies
    28
    Views
    4,251

    ok I fixed the unresolved external (was missing...

    ok I fixed the unresolved external (was missing an argument in my function call and a parameter in my prototype).

    however, it does not work properly, it prints out garbage for a word and a huge...
  11. Replies
    28
    Views
    4,251

    ok I wrote something that I believe will count...

    ok I wrote something that I believe will count the words in the function the way I want it too, but now I have two errors:

    text processing error LNK2019: unresolved external symbol "void __cdecl...
  12. Replies
    28
    Views
    4,251

    ok I finally got my two dimensional array of...

    ok I finally got my two dimensional array of words, now I still have no clue how to check how many times each word appears, I updated my code in the first post to show what i currently have.
  13. ok I got this working, I did it by using two for...

    ok I got this working, I did it by using two for loops and accessing each element of the array , one by one. count is the number of words in total



    for (counter1 = 0; counter1 != count;...
  14. The way my book defined a string was a series of...

    The way my book defined a string was a series of characters each being held in a space of the array with a null statement at the end of it.

    im going to try it your way now as well, would I use %c...
  15. How do I print out a two dimensional array of strings?

    okay I have a two dimensional array of strings. Each row of the string is a variable length word, each terminated by a null statement. I am able to print out the first row of the string, but can't...
  16. Replies
    28
    Views
    4,251

    that whole new function is how i'm trying to...

    that whole new function is how i'm trying to initialize each pointer in the array. I want each one to point to a word, but only one word, in the input. any suggestions on how to make that function do...
  17. Replies
    28
    Views
    4,251

    no I do not, everything in my program is either...

    no I do not, everything in my program is either in the first post, or the third post. Wouldn't an uninitialized pointer work like an uninitialized variable? As long as I set it equal to something...
  18. Replies
    28
    Views
    4,251

    I still can't get this to work, I tried creating...

    I still can't get this to work, I tried creating a one dimensional array of pointers but i'm still having the same problem, nothing is written to the new array.

    this is what i added to main:


    ...
  19. Replies
    28
    Views
    4,251

    ok, i tried converting my single dimension array...

    ok, i tried converting my single dimension array to a two dimensional array with one word stored on each row of the array.

    i added the following to main:



    char newarray[MaxWords][MaxData];...
  20. Replies
    28
    Views
    4,251

    text processing assignment

    The goal of this assignment is to count the number of words in a user entered string, count the number of letters in the shortest and longest word, the average number of letters used, the number of...
Results 1 to 20 of 20