c++文件读写fstream
文件读写fstream
继承stream类,与cin,cout操作类似
头文件#include<fstream>
demo
#include<iostream>
#include<fstream>
const int N=20;
using namespace std;
int dis[N][N];
int main()
{
ifstream fin("p01_d.txt");
for(int i=0,d;i<15;i++)
for(int j=0;j<
原创
2021-10-14 15:50:02 ·
71 阅读 ·
0 评论