I want to initialize a vector with following data of arr for that i have to initialize an array of string type and copy its value to vector string this is how i am doing it
it gives lots of errors
string arr[6][8]={
"AAAAAAAA",
"ABWBWBWA",
"ABWBWBWA",
"ABWBWBWA",
"ABWBWBWA",
"AAAAAAAA"};
vector<string> v(arr,arr+sizeof(arr)/sizeof(string));
I have done it for int array and vector of int type. Like this,
int vv[]={0,0,0,8};
vector<int> v(vv,vv+sizeof(vv)/sizeof(int));
and it works perfectly for this type but for string type its not working.