Thanks for the information Babkockdood.
I was change my scanf to fgets, but I got some problem. when I run my program, the first input "insert NIP" was skipped/I can't input NIP. so, the input start from "First Name".
this is my revised code:
Code:
gotoxy(20,5);printf("*******************************************");
gotoxy(20,6);printf("+**=======>> Input data dokter <<=======**+");
gotoxy(20,7);printf("||=======================================||");
gotoxy(20,8);printf(" ");
gotoxy(20,9);printf("1. Input NIP ");
fgets(doct[z].sNip, 9, stdin);
gotoxy(20,10);printf("2. Insert first name: ");
fgets(doct[z].fName, 14, stdin);
gotoxy(20,11);printf("3.Insert Last Name: ");
fgets(doct[z].lName, 14, stdin);
gotoxy(20,12);printf("4. Insert Address: ");
fgets(doct[z].sAlmt, 29, stdin);
gotoxy(20,13);printf("5. Insert Birth Date [dd/mm/yyyy]: ");
fgets(doct[z].sTgl, 14, stdin);
gotoxy(20,14);printf("6. Sex: ");
fgets(doct[z].sSex,2, stdin);
gotoxy(20,15);printf("7. Specialist: ");
fgets(doct[z].sSpec, 29, stdin);
//doct[z].sav = 0;
gotoxy(20,16);printf("\n Input again [y/t]? ");
scanf("%c", &cLagi);getch();
readData(z);