hdoj 1113 Word Amalgamation (字符串处理)

思路:把字典中的单词的字母进行排序,把输入的单词的字母也进行排序,然后比较相等则输出;注意:在有多个输出时关注输出的每个单词是按字母的ASCII码进行排序才输出;

代码如下:

#include 
#include 
#include 
#include 
#include  
using namespace std; 
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
struct node
{
	char a[10];
	
}d[100];
node temp[100],temp2[100];
bool cmp(char a,char b)
{

	return a

你可能感兴趣的:(模拟+water~~)