텍스트 파일 만들고 싶습니다.
검사
텍스트 파일 만들고 싶습니다.아래있는 소스를 텍스트파일로 뽑아내고싶습니다.질문 내용 : 아래있는 소스를 텍스트파일로 뽑아내고싶습니다. 근데 어디에다 함수식을 넣어야 할지 모르겠어요
ㅠㅠㅠ도와주세요ㅠㅠㅠ
#include stdio.h
#include stdlib.h
void main( void )
{
int i;
double t;
double x;
float p0[2], p1[2], p2[2], p3[2];
printf(입력x1:);
scanf(%f, &p0[0]);
printf(입력y1:);
scanf(%f, &p0[1]);
printf(\n입력x2:);
scanf(%f, &p1[0]);
printf(?입력y2:);
scanf(%f, &p1[1]);
printf(\n입력x3:);
scanf(%f, &p2[0]);
printf(입력y3:);
scanf(%f, &p2[1]);
printf(\n입력x4:);
scanf(%f, &p3[0]);
printf(\n입력y4:);
scanf(%f, &p3[1]);
for(i = 0; i 100; i++)
{
t = i / 100.0;
x = (1-t)*(1-t)*(1-t)*p0[0]+(3*t)*(1-t)*(1-t)*p1[0]+3*t*t*(1-t)*p2[0]+t*t*t*p3[0];
printf(%f,, x);
x = (1-t)*(1-t)*(1-t)*p0[1]+(3*t)*(1-t)*(1-t)*p1[1]+3*t*t*(1-t)*p2[1]+t*t*t*p3[1];
printf(%f\n, x);
}
}