actually, i made an enumeration type earlier in the program which defines all lowercase letters as type letters. it was necessary that i use the enum type.
This is not working properly at all. It compiles but doesnt do what i want it to. i think the main problem is in the bold parts.
Expand|Select|Wrap|Line Numbers
- void getArray(bool set_A[],bool set_B[])
- {
- letters let;
- for (let=a; let<=z; let++)
- {
- set_A[let]=FALSE;
- set_B[let]=FALSE;
- }
- printf("Enter the string of letters for Set A: ");
- while((let=getchar()) != EOF)
- {
- set_A[let]=TRUE;
- }
- printf("\nEnter the string of letters for Set B: ");
- while(( let=getchar()) != EOF)
- {
- set_B[let]=TRUE;
- }
- }