代码实现(Visual Studio 2017)
#include <stdio.h>
#include <windows.h>
#include <string.h>
#pragma warning(disable: 4996)
void Exchange(char * str1, char *str2)
{
char str_e[10] = "0";
strcpy(str_e, str1);
strcpy(str1, str2);
strcpy(str2, str_e);
}
void sort(char str[][10])
{
int i = 0