"std::vector<char*> * content" -- this means that "content" is a pointer to a vector somewhere else (because of the bolded asterisk), and that you have to manage this stuff somehow. (e.g. new and delete, and using with pointer dereferencing) I doubt this is what you want.
You probably want something like this (with less magic numbers than your example):
std::vector<char *> content;
content.push_back("Test 1");
content.push_back("Test 2");
content.push_back("Test 3");
const int x = 100;
const int y = 100;
manyWrite (x, y, test);
void manyWrite(int startX, int startY, std::vector<char *> & lines)
{
const int verticalSpacing = 20;
for (int i = 0; i < lines.size(); i++)
{
myWrite(startX, startY + (i * verticalSpacing), lines[i]);
}
}
Alternatively, make it just a vector of std::string instead of char*, and use the "c_str" function of std::string when needed. Depends on how you're going to use the "manyWrite" function, though.