ftell ()1 랜덤 액세스 :fseek(),ftell() fseek() int fseek(FILE *fp, long offse , int whence); fp : 대상이 되는 파일 포인터 offset: whence 위치부터 새로운 위치까지 상대적으로 떨어진 거리(바이트수) whence: 파일 포인터 이동을 위한 기준점 출처https://modoocode.com/72 C 언어 레퍼런스 - fseek 함수 modoocode.com 학생 socre 를 입력 받아서 저장하고 출력 하는 코드 #include int add(); int search(); typedef struct score { int eng, math; char name[20]; } STUCENT_SCORE; char* fname = "result.dat"; int main() { int stop = 0.. 2021. 6. 7. 이전 1 다음