열혈강의 c 연습문제 24-1 (1)

|

#include <stdio.h>

#include <stdlib.h>

#include <string.h>


//이름 abc 주소 def123 주민 456-789 



int main(void)

{

int state;


FILE * file = fopen("ex1.txt","wt");


fprintf(file, "이름 = %s, 주소 = %s, 주민 = %s", "abc","def123","456-789"); 


fclose(file);


system("pause");

return 0;

}     



// 컴파일러 dev c++

And