|
|
|
|
Stalker wrote: |
---|
The same thing you did can be accomplished through classes and it won't be any different than this just that the data will be encapsulate. And only certain member functions of that class can modify the data. It depends entirely on your use. But preferred method is by classes. |
std::vector
you can refer to individual items with the subscript operator : std::cout << "Item 10 is " << words[10-1] << "\n"; // subscripts start at 0
http://www.cplusplus.com/reference/vector/vector/ |