/*this program has been condensed from over 2400 word combinations down to 27
It is for arranging the meanings of words in the order the words were written. Many words have several meanings (descriptions).
*/
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <ctype.h>
#define TRUE 1
#define FALSE !TRUE
#define MAX_LINE_BUFFER 128
char buffer[MAX_LINE_BUFFER];
char stay_open,c,menu,ans;
char select_1;
char str_a[20],str_aa[20],str_aaa[20];
char str_b[20],str_bb[20],str_bbb[20];
char str_c[20],str_cc[20],str_ccc[20];
void main (void)
{
stay_open=TRUE;
while (stay_open)
{
do
{
printf("\n Menu for selecting combinations of words and meanings.");
printf("\n Numbers under 'word' represents number of meanings.");
printf("\n Example: If 1st word has 3 meanings and 2nd word has");
printf("\n 3 meanings you would Enter Selection 3.");
printf("\n Select 1st 2nd 3rd");
printf("\n word word word\n");
printf("\n 3. 3 3");
printf("\n 4. 3 3 3");
printf("\n Enter your selection ");
fgets (buffer, MAX_LINE_BUFFER, stdin);
select_1 = atoi (buffer);
if ( (select_1 <= 2 ) || (select_1 >= 5) )
printf("\nOops, try again!\n");
}
while ( (select_1 <= 2) || (select_1 >= 5) );
switch (select_1)
{
case 3:
printf("\nEnter 1st meaning for first word ");
scanf ("%s",str_a);
printf("Enter 2nd meaning for first word ");
scanf ("%s",str_aa);
printf("Enter 3rd meaning for first word ");
scanf ("%s",str_aaa);
printf("\nEnter 1st meaning for second word ");
scanf ("%s",str_b);
printf("Enter 2nd meaning for second word ");
scanf ("%s",str_bb);
printf("Enter 3rd meaning for second word ");
scanf ("%s",str_bbb);
printf("\n%s %s %s %s %s %s\n",
str_a,str_b,str_a,str_bb,str_a,str_bbb);
printf("\nPress any key continue\n");
getch();
printf("\n%s %s %s %s %s %s\n",
str_aa,str_b,str_aa,str_bb,str_aa,str_bbb);
printf("\nPress any …