hello guys please again helpme on this one
i really dont know what gone wrong and i have too many errors 25 for the exact
i think i need help
CODE
#include<stdio.h>
#include<conio.h>
#define Max 50
typedef str20, char[20];
struct mystruct {
str20 lname, fname;
char mi;
int NHW;
float RPH;
}EmpRec;
struct mystruct EmpRec[Max];
void main()
{
int i;
for (i=0;i<Max;i++)
{
printf("Enter last nam:\t");
gets(EmpRec[i].lname);
printf("Enter last name:\t");
gets(EmpRec[i].fname);
printf("enter middleinitial:\t");
EmpRec[i].mi=getche();
printf("enter the no. of hr worked");
scanf("%d",&NWH);
printf("enter rate/hr");
scanf("%d",&RPH);
}
for (i=0;i<Max;i++)
{
printf("last name is:\t",EmpRec[i].lname);
printf("first name is:\t",EmpRec[i].fname);
printf("MI is%ch\t",EmpRec[i].mi);
printf("No. of hr worked:%d\t",EmpRec[i].NWH);
printf("Rate/hr is:%d\t",EmpRec[i].RPH);
}
getch();
}
i really appreciate your help!!!