CStdioFile y_file;
y_file.Open(Temp,CFile::modeRead);//Temp是要打开的文件地址
//下面是提取数据个数
CString m_current;
y_file.SeekToBegin();
int p=0;
while(y_file.ReadString(m_current))
p++;
U=(p-2)/2;
CArray<CString,CString>point;
point.SetSize(2*U);
y_file.SeekToBegin();
y_file.ReadString(m_current);
for(i=0;i<U;i++)
{
y_file.ReadString(point[i]);
}
y_file.ReadString(m_current);
for(i=N;i<2*U;i++)
{
y_file.ReadString(point[i]);
}
CStdioFile t_file(_T("ceshi.txt"),CFile::modeCreate|CFile::modeReadWrite);
for(i=0;i<U;i++)
{
t_file.WriteString(point[i]);
t_file.WriteString("\n");
}
y_file.Open(Temp,CFile::modeRead);//Temp是要打开的文件地址
//下面是提取数据个数
CString m_current;
y_file.SeekToBegin();
int p=0;
while(y_file.ReadString(m_current))
p++;
U=(p-2)/2;
CArray<CString,CString>point;
point.SetSize(2*U);
y_file.SeekToBegin();
y_file.ReadString(m_current);
for(i=0;i<U;i++)
{
y_file.ReadString(point[i]);
}
y_file.ReadString(m_current);
for(i=N;i<2*U;i++)
{
y_file.ReadString(point[i]);
}
CStdioFile t_file(_T("ceshi.txt"),CFile::modeCreate|CFile::modeReadWrite);
for(i=0;i<U;i++)
{
t_file.WriteString(point[i]);
t_file.WriteString("\n");
}
103
1.00000000 0.00000000
0.99000000 0.00249000
0.98000000 0.00457800
0.97000000 0.00664700
0.96000000 0.00871400
0.95000000 0.01080100
0.94000000 0.01291600
0.93000000 0.01505900
0.92000000 0.01723000
0.91000000 0.01942800
0.90000000 0.02164900
0.87500000 0.02729000
0.85000000 0.03302200
0.82500000 0.03880500
0.80000000 0.04459200
0.77500000 0.05034300
0.75000000 0.05601500
0.72500000 0.06157200
0.70000000 0.06698000
0.67500000 0.07221200
0.65000000 0.07724200
0.62500000 0.08203600
0.60000000 0.08655200
0.57500000 0.09076300
0.55000000 0.09463800
0.52500000 0.09814200
0.50000000 0.10124100
0.47500000 0.10389400
0.45000000 0.10605900
0.44000000 0.10677200
0.43000000 0.10739200
0.42000000 0.10791000
0.41000000 0.10831500
0.40000000 0.10858800
0.39000000 0.10871800
0.38000000 0.10871000
0.37000000 0.10857900
0.36000000 0.10833700
0.35000000 0.10798900
0.34000000 0.10754100
0.33000000 0.10699400
0.32000000 0.10635200
0.31000000 0.10561600
0.30000000 0.10478500
0.29000000 0.10386000
0.28000000 0.10284300
0.27000000 0.10173200
0.26000000 0.10052500
0.25000000 0.09922400
0.24000000 0.09782600
0.23000000 0.09632900
0.22000000 0.09472900
0.21000000 0.09302800
0.20000000 0.09122000
0.19000000 0.08930200
0.18000000 0.08727000
0.17000000 0.08512000
0.16000000 0.08284700
0.15000000 0.08044100
0.14000000 0.07789700
0.13000000 0.07520700
0.12000000 0.07236000
0.11000000 0.06933900
0.10000000 0.06613100
0.09500000 0.06445000
0.09000000 0.06271500
0.08500000 0.06092100
0.08000000 0.05906500
0.07500000 0.05714100
0.07000000 0.05514600
0.06500000 0.05307300
0.06000000 0.05091300
0.05500000 0.04866000
0.05000000 0.04630000
0.04500000 0.04382200
0.03999900 0.04120800
0.03500000 0.03843700
0.03000000 0.03547600
0.02500000 0.03228300
0.02000000 0.02878800
0.01750000 0.02689500
0.01500000 0.02488000
0.01250000 0.02271300
0.01000000 0.02034800
0.00900000 0.01932900
0.00800000 0.01826000
0.00700000 0.01712900
0.00600000 0.01592000
0.00500000 0.01461300
0.00400000 0.01316600
0.00300000 0.01149700
0.00200000 0.00944200
0.00175000 0.00882900
0.00150000 0.00816000
0.00125000 0.00742600
0.00100000 0.00660900
0.00075000 0.00567900
0.00050000 0.00458900
0.00040000 0.00409000
0.00030000 0.00352900
0.00020000 0.00287800
0.00010000 0.00204600
0.00000000 0.00000000
103
0.00000000 0.00000000
0.00010000 -0.00213700
0.00020000 -0.00301200
0.00030000 -0.00367800
0.00040000 -0.00423600
0.00050000 -0.00472500
0.00075000 -0.00575500
0.00100000 -0.00661500
0.00125000 -0.00736700
0.00150000 -0.00804500
0.00175000 -0.00866700
0.00200000 -0.00924100
0.00300000 -0.01117400
0.00400000 -0.01271100
0.00500000 -0.01402900
0.00600000 -0.01520600
0.00700000 -0.01627400
0.00800000 -0.01725600
0.00900000 -0.01816700
0.01000000 -0.01902000
0.01250000 -0.02094700
0.01500000 -0.02265200
0.01750000 -0.02419200
0.02000000 -0.02560400
0.02500000 -0.02814000
0.03000000 -0.03039000
0.03500000 -0.03242600
0.04000000 -0.03429600
0.04500000 -0.03603100
0.05000000 -0.03765500
0.05500000 -0.03918300
0.06000000 -0.04062900
0.06500000 -0.04200100
0.07000000 -0.04330600
0.07500000 -0.04455200
0.08000000 -0.04574300
0.08500000 -0.04688300
0.09000000 -0.04797800
0.09500000 -0.04903100
0.10000000 -0.05004400
0.11000000 -0.05196000
0.12000000 -0.05374500
0.13000000 -0.05541200
0.14000000 -0.05696900
0.15000000 -0.05842600
0.16000000 -0.05979000
0.17000000 -0.06106500
0.18000000 -0.06225500
0.19000000 -0.06336500
0.20000000 -0.06439900
0.21000000 -0.06535800
0.22000000 -0.06624600
0.23000000 -0.06706400
0.24000000 -0.06781300
0.25000000 -0.06849400
0.26000000 -0.06910800
0.27000000 -0.06965700
0.28000000 -0.07014000
0.29000000 -0.07055700
0.30000000 -0.07090900
0.31000000 -0.07119500
0.32000000 -0.07141300
0.33000000 -0.07156200
0.34000000 -0.07164100
0.35000000 -0.07165000
0.36000000 -0.07158100
0.37000000 -0.07143200
0.38000000 -0.07119900
0.39000000 -0.07086900
0.40000000 -0.07042400
0.41000000 -0.06985600
0.42000000 -0.06917400
0.43000000 -0.06839500
0.44000000 -0.06753300
0.45000000 -0.06659700
0.47500000 -0.06397600
0.50000000 -0.06100400
0.52500000 -0.05773400
0.55000000 -0.05421000
0.57500000 -0.05047100
0.60000000 -0.04656100
0.62500000 -0.04251400
0.65000000 -0.03836700
0.67500000 -0.03416700
0.70000000 -0.02996100
0.72500000 -0.02578000
0.75000000 -0.02166600
0.77500000 -0.01766200
0.80000000 -0.01382600
0.82500000 -0.01021700
0.85000000 -0.00690500
0.87500000 -0.00396700
0.90000000 -0.00149500
0.91000000 -0.00066000
0.92000000 0.00007200
0.93000000 0.00069100
0.94000000 0.00118500
0.95000000 0.00153700
0.96000000 0.00173200
0.97000000 0.00173800
0.98000000 0.00152000
0.99000000 0.00103200
1.00000000 0.00000000
1.00000000 0.00000000
0.99000000 0.00249000
0.98000000 0.00457800
0.97000000 0.00664700
0.96000000 0.00871400
0.95000000 0.01080100
0.94000000 0.01291600
0.93000000 0.01505900
0.92000000 0.01723000
0.91000000 0.01942800
0.00000000 0.00000000
0.00010000 -0.00213700
0.00020000 -0.00301200
0.00030000 -0.00367800
0.00040000 -0.00423600
0.00050000 -0.00472500
0.00075000 -0.00575500
0.00100000 -0.00661500
0.00125000 -0.00736700
0.00150000 -0.00804500
0.00175000 -0.00866700
0.00200000 -0.00924100
0.00300000 -0.01117400
0.00400000 -0.01271100
0.00500000 -0.01402900
0.00600000 -0.01520600
0.00700000 -0.01627400
0.00800000 -0.01725600
0.00900000 -0.01816700
0.01000000 -0.01902000
0.01250000 -0.02094700
0.01500000 -0.02265200
0.01750000 -0.02419200
0.02000000 -0.02560400
0.02500000 -0.02814000
0.03000000 -0.03039000
0.03500000 -0.03242600
0.04000000 -0.03429600
0.04500000 -0.03603100
0.05000000 -0.03765500
0.05500000 -0.03918300
0.06000000 -0.04062900
0.06500000 -0.04200100
0.07000000 -0.04330600
0.07500000 -0.04455200
0.08000000 -0.04574300
0.08500000 -0.04688300
0.09000000 -0.04797800
0.09500000 -0.04903100
0.10000000 -0.05004400
0.11000000 -0.05196000
0.12000000 -0.05374500
0.13000000 -0.05541200
0.14000000 -0.05696900
0.15000000 -0.05842600
0.16000000 -0.05979000
0.17000000 -0.06106500
0.18000000 -0.06225500
0.19000000 -0.06336500
0.20000000 -0.06439900
0.21000000 -0.06535800
0.22000000 -0.06624600
0.23000000 -0.06706400
0.24000000 -0.06781300
0.25000000 -0.06849400
0.26000000 -0.06910800
0.27000000 -0.06965700
0.28000000 -0.07014000
0.29000000 -0.07055700
0.30000000 -0.07090900
0.31000000 -0.07119500
0.32000000 -0.07141300
0.33000000 -0.07156200
0.34000000 -0.07164100
0.35000000 -0.07165000
0.36000000 -0.07158100
0.37000000 -0.07143200
0.38000000 -0.07119900
0.39000000 -0.07086900
0.40000000 -0.07042400
0.41000000 -0.06985600
0.42000000 -0.06917400
0.43000000 -0.06839500
0.44000000 -0.06753300
0.45000000 -0.06659700
0.47500000 -0.06397600
0.50000000 -0.06100400
0.52500000 -0.05773400
0.55000000 -0.05421000
0.57500000 -0.05047100
0.60000000 -0.04656100
0.62500000 -0.04251400
0.65000000 -0.03836700
0.67500000 -0.03416700
0.70000000 -0.02996100
0.72500000 -0.02578000
0.75000000 -0.02166600
0.77500000 -0.01766200
0.80000000 -0.01382600
0.82500000 -0.01021700
0.85000000 -0.00690500
0.87500000 -0.00396700
0.90000000 -0.00149500
是把N当作U在用了