1 2 3 4 5 6 7
FILE *file; file=fopen("name.txt","rt"); int N=0; while(fgets(buf,99,file)!=0) N++; rewind(file); Complex* C=new Complex[N];