So, the goal of this function is for the user to give a array of strings, then using a previously defined function, determine if each individual string is a valid sentence. Unfortunately, I am completely lost about how to go about this.
int validSentences(const std::vector<std::string> paragraph)
{
char* str;
for (auto a : paragraph)
{
std::cout << a << " ";
strcat(str, a.c_str);
}
std::cout << str << std::endl;
}
Here is what I have as a prototype, but I'm sure this is way off base.
I think a good start to my question would be this:
How would I go about taking each string within the given vector, and converting it to a cstring using an enhanced for loop that utilizes the auto keyword?