本题所采用的思想并不复杂,只是情况较多,尤其是注意字符串的开始和结尾都是'-'的情况 #include <iostream> using namespace std; #include <ctype.h> void Print_Char(char left, char right, int p1, int p2, int p3) { //如果减号右边的字符恰好是左边字符的后继,只删除中间的减号 if(right-left == 1) printf(""); else if(right <= left) printf("-")...