//对长度为7的字符串,除首尾字符外,将其余5个字符按ASCII降序排序。 1#include <stdio.h>2#include <ctype.h>3#include <string.h>45voidfun(char*s,intnum)6{7intt,i,j,k;//使用指针8s++;9for( i =1; i < num-1; i++)10{11k =1;12for(j = i+1; j < num -1; j++)13{14if(...
include<string> include<iostream> using namespace std;int main(){ string ans[1000],load;int i=0;int j=0;while(cin>>ans[i]){ i++;while(ans[i][j]){ if(ans[i][j]==';'){ strcpy(ans[i+1],ans[i],j)break;} j++;} } } ...