Excellent respond. Thank you a lot. You did a great job for me.
Just some other questions.
1- if I want to copy the sorted data of my_vector into my_array again in the end of program (line 21) what should I do?
2- why the size of my_vector is equal to size of my_array but the capacity of my_vector is more than its size.
3-the lines 11 and 12 in your last response is for transferring my_array[3][4] into my_vector[3][4]?
4- what is best: a-work with vectors in all of my program and forget the arrays or b- using the arrays and transfer it into vector and return it back when need
Regards.