A
abraxas
Ok maybe someone here can help me. I have been learning c++ and have
been toying with some basic programming and have run into something
that I would have assumed would have been fairly easy. I am wanting to
input a list of words into the program and I thought you would use and
array to do that, but I am not having any luck finding info on storing
an actual list of words. I have set it up so that it prompts you for
the number of words. Then it enters a while loop and prompts you for
each of the words, It is all working so far but my problem arrises here
I am storing each word under the same string called word. Shouldn't I
be able to simply assign that string to a position in an array and
automatically increment it to the next spot when I enter the next word
so I don't keep overwriting the same string variable with each word.
Sorry if this was confusing, was struggling with how to word this.
been toying with some basic programming and have run into something
that I would have assumed would have been fairly easy. I am wanting to
input a list of words into the program and I thought you would use and
array to do that, but I am not having any luck finding info on storing
an actual list of words. I have set it up so that it prompts you for
the number of words. Then it enters a while loop and prompts you for
each of the words, It is all working so far but my problem arrises here
I am storing each word under the same string called word. Shouldn't I
be able to simply assign that string to a position in an array and
automatically increment it to the next spot when I enter the next word
so I don't keep overwriting the same string variable with each word.
Sorry if this was confusing, was struggling with how to word this.