Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
839 B
3
Indexable
Never
/*NGUYEN HUONG DUYEN
  6251071018
CQ.62.CNTT*/

#include <stdio.h>

typedef struct{
  int day, month, year;
} date;
typedef struct SinhVien {
  char MaSV[10];
  char HoTen[20];
  date NgaySinh;
  int THDC, KTLT; //Diem
} SV;
typedef struct GiangVien {
  char MaGV[10];
  char HoTen[20];
  date NgaySinh;
} GV;
typedef struct MonHoc{
  char MaMH[10];
  char TenMH[50];
 int SoTinChi;
  } MH;
void Inputdate (date a){
   printf(“\n Nhap ngay/thang/nam (dd/mm/yyyy): ”);
   fflush(stdin);
   scanf(“%2d %2d %4d”, &day, &month, &year);
}
void InputSV (SV a){
  fflush(stdin);
  printf("\n Nhap thong tin SV: ");

  printf ("\n\t MaSV:");
  scanf("%s", &a.MaSV);

  printf ("\n\t HoTenSV:");
  scanf("%s", &a.HoTen);

  Inputdate (&a.NgaySinh);
}


int main() {
   SV K62[10];
   GV GV1[10];
   printf("Hello, World!\n");
   return 0;
}