If you wanted, you could even make it one function, unless your professor explicitly stated you need two functions. In that case, just pass your string into one, get the result of that, then pass it into the next function.
What about arrays? Have you discussed arrays yet? Some professors talk about them in a similar fashion while others teach them as separate lessons/units. If all else fails, just go with your basic string class.
Notice how the string class (yes, from #include<string>) has a size() function. It will be similar to the example function I wrote for you in the previous post, just without the vector<string>::size_type part. Replace that with unsigned int and you'll be fine.