구조체 배열을 이용한 프로그래밍인데요
블1랙캣
질문 제목 : 구조체 배열을 이용한 프로그래밍인데요계속 에러가 뜨는게 어느부분이 이상한건지 잘 모르겠습니다...질문 내용 :
//구조체
struct sung
{
char num[16];
char title[20];
char section[6];
char year[4];
char borrow[1];
};
//함수
#includestdio.h
#includestring.h
#includesung.h
void main()
{
int i;
int j;
sung list[5];for(i=0;i5;i++)
{
printf(테이프를 등록하시겠습니까?(yes=1/no=0));
scanf(%d,&j);
if(j==1){
printf(\n\t enter the number=);gets(list[i].num);
printf(\n\t enter the title=);gets(list[i].title);
printf(\n\t enter the section=);gets(list[i].section);
printf(\n\t enter the year=);gets(list[i].year);
printf(\n\t is it possible to borrow? =);gets(list[i].borrow);
}
else break;
}
printf(num title section year borrow\n);
printf(----------------------------------------------);
for(i=0;i5;i++)
{
printf(%10s%15s%10s%4s%2s\n,list[i].num,list[i].title,list[i].section,list[i].year,list[i].borrow);
}
}
잘못된부분 지적후 수정해주시면 감사하겠습니다 ㅠ