No it doesn't. As you seem to be having problems here it is in your code -
Code:
#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
void alphabet( char [] ); //functions prototype
int main()
{
int count = 0;
char string[256];
cout <<"Please enter 1 line of text from the keyboard. \n";
cout <<"Please hit enter when you are done.\n\n";
cin.getline(string, 256, '\n'); //The user input goes into string
int numletters [26] = {0};
for(int i = 0; i < strlen(string); i++)
{
char c = tolower(string[i]);
numletters[c -'a']++;
}
for(int j=0;j<26;j++)
cout << char('a'+j) << " - " <<numletters[j]<< endl;
char *tokenPtr;
tokenPtr = strtok( string, " " );
while ( tokenPtr != NULL )/* The following code counts the words or tokens in a sentence.*/
{
tokenPtr = strtok( NULL, " " );
count = count + 1;
}//end while ( tokenPtr != NULL )
cout << "Word Count: " << count;
return 0;
}//end int main ()