#include<stdio.h>
void main()
{
FILE *fin = fopen_s("input.txt", "r");
FILE *fout = fopen_s("output.txt", "w");
int n;
fscanf(fin, "%d", &n);
printf("%d", n);
fprintf(fout, "hello,world! %d", n);
fclose(fin);
fclose(fout);
}
저기 괄호 닫는부분에 밑줄 그어놨는데 저부분에 오류가 자꾸나요ㅠ
둘다 error c2198 : 'fopen_s' : 호출에 매개 변수가 너무 적습니다. 하고
intellisense : 함수 호출에 인수가 너무 적습니다.
이렇게 뜨네요.. 어디가 잘못된거죠?ㅜㅜ