由outfile将数字写入文件,再由infile将数字写到数组
#include
#include
using namespace std;
int main()
{
string t_sFileName;
t_sFileName="D:\\a.txt"; //在D盘新建了一个.txt文件
ofstream outfile;
outfile.open(t_sFileName.c_str(), ofstream::out|ofst
原创
2012-03-02 15:50:03 ·
1182 阅读 ·
2 评论