I have a problem trying to call a fuction with the string and the colon (':') as arguments. It is suppose to return then count number of tokens seperated by the colon in the string. The output should be shown in main. Any help is aprreciated. Thanks.
int countToken(char theString,':');
char theString = "abcd0001:groupno:userno:name:/bin/ksh";
tokenCount = countToken(theString,':');
cout << " Number of words in string are: " << tokenCount;
int countToken (char theString,':')
if (theString == ':')