Hi,
I am about ready to start reading about Pointers. However, there are some problems I cannot solve: string array sorting. I have tried everything. The problem with string array is it is not as giving as integer array. For example,
int num[10][1];
for (int ndex = 0; ndex > 10, ndex++)
cin >> num[ndex] // notice how integer array does not require the second dimension bracket.
On the other hand, a string array is very picky. I have not been able to modify the *int array selection sort* to work with string array. I believe there are easier ways to deal with string array, which is std::vector. I was wondering if anyone know anything about std::vector and could point me in the right direction. The book I am reading vaguely discuss std and is not indelphed. I will buy a good C++ std book very soon. I do want to finish reading this book first because there are many things I still want to learn.
Thanks.
Kuphryn
I am about ready to start reading about Pointers. However, there are some problems I cannot solve: string array sorting. I have tried everything. The problem with string array is it is not as giving as integer array. For example,
int num[10][1];
for (int ndex = 0; ndex > 10, ndex++)
cin >> num[ndex] // notice how integer array does not require the second dimension bracket.
On the other hand, a string array is very picky. I have not been able to modify the *int array selection sort* to work with string array. I believe there are easier ways to deal with string array, which is std::vector. I was wondering if anyone know anything about std::vector and could point me in the right direction. The book I am reading vaguely discuss std and is not indelphed. I will buy a good C++ std book very soon. I do want to finish reading this book first because there are many things I still want to learn.
Thanks.
Kuphryn