예제 #1
0
int main(void){
	openFiles();
	long long int i, num;
	scanf("%lld", &num);
	for (i = 0; num; i++, length++){
		sequence[i] = num % 10;
		num /= 10;
	}
	for (i = 0; i < length / 2; i++) {
		int temp = sequence[i];
		sequence[i] = sequence[length-1-i];
		sequence[length-1-i] = temp;
	}
	openDictionary();
	permute(0);
	if (!printedSomething)
		printf("NONE\n");
	return 0;
}
예제 #2
0
void Anagramer::run(void){
  // File open failed return message in openDicitionary
  if( openDictionary() ) return;
  getWords();
  return;
}