I have to make a vector that stores char pointers. Each pointer should only point to a single char like 'a' or 'b'. I don't get any compile errors, but when I run my program, it crashes. I cannot use std::string or any of its functions, they have to just be characters.
std::vector<char*> myVector;
myVector.reserve(10);
myVector.at(0) = new char['a'];
Why does the program crash? Shouldn't I be able to create new char pointers in memory as I go?