function to check consonant
bool isCons ( char ch ) { return ( ch != ' a ' && ch != ' e ' && ch != ' i ' && ch != ' o ' && ch != ' u ' ) ; } int countSpecial ( string & str ) { int len = str . length ( ) ;