I am stuck in the following exercise:
Can i get some help please
Create a short program that:
- Declares a variable named p that can point to a vector of strings.
- Ask the user how big the vector should be, and what string to set all of its elements to. - Allocate that vector, and fill it with the requested values.
- Deallocate the memory pointed to by p.
"Vector" is ambiguous. A vector can be either an array of something or a std::vector. Judging by the assignment, I'm assuming you mean an array of strings, namely: