#include <Stdio.h>
#include <stdlib.h>
class student
{
 int id;
 char name[8];
 char dept[4];
}
int main()
{
 int a;
 char b[8],c[4];
 int i,j;
 FILE *fp = fopen("StdList.txt","r+t");
 if(fp==NULL)
 {
  printf("파일 안열림\n");
  return 1;
 }
 scanf("%d",&i);
 student *std;
 std=(student *)malloc(sizeof(student)*i);
 for(j=0;j<i;j++)
 {
  fscanf(fp,"%d",&a);
  std[j]->id;<<<<<<<<<<<<<<----------이부분이 오류뜨는데요 std 부분에 빨간줄이 그어져있어요 표현이 반드시 포인터 타입이어야된데요 ㅠㅠ
*std[j] 해도 오류뜨네요 ㅠㅠ