Answer the question
In order to leave comments, you need to log in
How to create a vector of arrays in C++?
I need to create a vector of arrays. The vector will store references to arrays. I implemented like this:
vector < unsigned char* > array;
for(int i=0; i<10; i++){
obj.c_k=obj.sK(obj.c_k,i);
array.push_back(obj.c_k);
cout<<"---"<<i<<"----"<<endl;
}
Answer the question
In order to leave comments, you need to log in
You push the same entry into the vector:
array_cipher_key.push_back(array);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question