This is what I have so far:
#include<iostream>
using std::cout;
using std::cin;
int main()
{
char more, letter='a', next;
int count = 1, num;
do
{
system("cls");
for ( int i = 0; i < count; ++i )
{
next=letter + i;
cout << next;
}
cout << "\nAnother? ";
cin >> more;
++count;
}while( more == 'y' );
do
{
cout << "Enter the distance (must be between 2 and 25}";
cin >> num;
}while (num >= 1 && num <= 25);
return 0;
{
I'm lost from here. Once I put in a number for the distance, how do I get a letter to print out and then ask for another one.
this is what I need it to do:
Enter the first character: a
Enter the distance: 15
Is ap a word? n
Is ape a word? y
Found a 3-letter word!
and
Example Run 2:
Enter the first character: p
Enter the distance: 2
Is pr a word? n
Is prt a word? n
Is prtv a word? n
Is prtvx a word? n
Is prtvxz a word? n
Is prtvxzb a word? n
Is prtvxzbd a word? n
Is prtvxzbdf a word? n
Is prtvxzbdfh a word? n
Is prtvxzbdfhj a word? n
Is prtvxzbdfhjl a word? n
Is prtvxzbdfhjln a word? n
No words were found that meet the given qualifications.