Not really sure of the point but:
Code:const char * testString = "Now is the time for this test to end"; int main(int argc, char *argv[]) { int nRC = 0; cout << "lettersearch_test 1.0" << endl; int count = 0; char testChar = 'e'; for(int x = 0; x < strlen(testString); x++) { if(testString[x] == testChar) { count++; } } cout << "\'" << testChar << "\' was found " << count << " times." << endl; return nRC; }