文件流的处理 C C++
C:
eg:
#include <fstream> #include <iostream> #include <cstdio> using namespace std; int main(){ freopen("D:\\input.in","r",stdin); freopen("D:\\output.out","w",stdout); 。。。//直接使用scanf printf等标准函数即可 return 0; }
C++:
C:
eg:
#include <fstream> #include <iostream> #include <cstdio> using namespace std; int main(){ freopen("D:\\input.in","r",stdin); freopen("D:\\output.out","w",stdout); 。。。//直接使用scanf printf等标准函数即可 return 0; }
C++: