devxlogo

October 11, 2001

Check if a Given String Is a Palindrome

This code checks if a given string is a palindrome. Public Function IsPalindrome(strToCheck As String) As BooleanDim iForward As IntegerDim iBack As IntegerDim iMid As IntegerDim bPalindrome As BooleanIsPalindrome =

Use Explicit Template Instantiation

Instead of depending on the compiler to instantiate your template, youshould explicitly instantiate them using the following statement: template class vector; // for class instantiationtemplate int& vector::operator[] (int); // for