if(islower(ch)) // 这里 if 后面的左括号“(”是中文字符ch = toupper(ch);要改成: if(islower(ch)) ch = toupper(ch);
你的小括号(是全角括号,不是半角括号。