Uhhh hi i need help for my program. So basically i want my program to list all possible combinations of 4 letters in a word. Ex. The word "TEST" can be unscrambled as TEST, TETS, TSET, TSTE, TTSE, TTES, etc.
I started coding and this is what ive got.
Any help is appreciated.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include<iostream.h>
#include<conio.h>
int main(){
char a[ 4];
clrscr();
cout<<"WORD UNSCRAMBLING PROGRAM \n";
cout<<"Enter 4 letter word to be unscrambled: ";
cin>>a;
cout<<"You entered: "<<a<<"\n";
cout<<"Possible combinations: ";
getche();
return 0;
}