Code sau chạy được trên VC nè bạn :
C Code:
#include<stdio.h> typedef struct diemthi { float toan; float ly; float hoa; }; typedef struct tt { char hoten[20]; int ngaysinh; char truong[20]; struct diemthi dt; }; int main() { struct tt hs[10]; int i,n; for(i=0;i<n;i++) { if((hs[i].dt.toan+hs[i].dt.ly+hs[i].dt.hoa)>=15) printf("Ho ten thi sinh nay la:%s",hs[i].hoten);//sao của bạn %s mà lại vứt ngay cái hs[i].ngaysinh zdậy } return 0; }