I am trying to write a program that has a vector of char arrays and am have some problems.
char test [] = { \'a\', \'b\', \'c\', \'d\', \'e\' };
vector
You need
char test[] = "abcde"; // This will add a terminating \0 character to the array
std::vector<std::string> v;
v.push_back(test);
Of if you meant to make a vector of character instead of a vector of strings,
std::vector<char> v(test, test + sizeof(test)/sizeof(*test));
The expression sizeof(test)/sizeof(*test)
is for calculating the number of elements in the array test.