Mar 19, 2012 at 7:58am UTC
#include<stdio.h>
#include<string.h>
...
char types[MAXARRAYSIZE][8] = {"A", "a", "B", "b", "C", "c", "D", "d"};
...
do{
printf("\nEnter which Window type you want: 'A'-4mm Standard, 'B'-4mm Toughened, 'C'-6mm Standard, 'D'-6mm Toughened:\n");
scanf("%c\n", &types);
}while (types[count] = "A", "a", "B", "b", "C", "c", "D", "d");
this is the part of the function which i dont understand
the compiler says "error incompatible types in assignment"
i would really appreciate it if you would help me
Mar 19, 2012 at 8:56am UTC
scanf isn't c++, use single quotes instead of double quotes for the letters '' not "".
types[count] shouldn't work since you made it two dimensional.