#include <stdio.h> #include <string.h> main() { FILE *fpt[8]; int i; char a[50] = {0}; for(i=1;i<=7;i++) { sprintf(a,"Wiegel curve relative height=%d.txt",i); fpt[i]=fopen(a,"w"); memset(a,0,sizeof(a)); } }