hello, everyone! i have a problem about my code. it automatically crashes after a user typed an info, ie, name, into the program. is there something wrong with the way i get information from the user?
here's my code:
thanks for those who'll help!Code:printf("Name..."); gets(dB[top]->name); printf("Age..."); scanf("%d", &(dB[top]->age)); printf("Sex..."); scanf("%c", &(dB[top]->sex)); printf("Height..."); scanf("%f", &(dB[top]->height)); printf("Weight..."); scanf("%f", &(dB[top]->weight)); }