Well what do you have so far? As far as using a c-string or a string object you can have you function take in a char * and then convert it to a string like
void foo(const char * bar)
{
string temp(bar);
// do stuff
}
As far as the functionality of the program you might want to look into the count function in the header. you can find a good link here .
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
If you run into anything else just post it.
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189