tại sao file của em lại không đọc được trong khi em đã tạo file rồi ạ?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define SO_KY_TU_MAX 1000
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
void intro();
int main(int argc, char *argv[]) {
char chuoibimat[SO_KY_TU_MAX]="";
intro();
FILE*taptin=NULL;
taptin= fopen("Tubian.txt", "r");
if(taptin!=NULL){
fgets(chuoibimat,SO_KY_TU_MAX,taptin);
printf("%s", chuoibimat);
fclose(taptin);}
else
printf("khong doc duoc");
return 0;
}
void intro(){
printf("\t\t\t CHAO MUNG CAC BAN DEN VOI MAGICIAL CONICAL HAT\n");
}


83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?