123456789101112131415161718192021222324
ofstream myfile; myfile.open("phase 1.txt"); if (myfile.is_open()) { for(i=0;i<M; i++) { myfile<<arrayD[j][10*i]; myfile<<","; } return 0; myfile.close(); } ofstream myfile1; myfile1.open("phase 2.txt"); if (myfile1.is_open()) { for(i=0;i<M; i++) { myfile1<<arrayD[j][10*i]; myfile1<<","; } return 0; myfile1.close(); }