I know that in order to initialize an array you must do something like:
string myArray[4];
But what if I don't know how big the array is going to need to be? How can I have an array have as many elements as needed determined by what the user enters?
(I am trying to create a program which lets a user type in any amount of words and then have the output of the program show how many times each letter was entered. My approach involves me putting the input into a string, putting that string into an element of an array, and repeating with a for loop.)
when you read the the tutorial mentioned by Zhuge in the past reply then you can meet with STL containers...if you beginner then i advance to meet only with vectors.....