1 2 3 4 5 6 7 8 9 10 11 12
|
//begining stuff..
string word;
char loop[52] = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
//making a word scrambler/unscrambler
cout << "Gimme a word" << endl;
cin >> word;
for(int i=0;i<=word.length()-1;i++)
{
cout << word[i] << word[i+1] << endl;
//idk
}
| |