#include <fstream> #include <iostream> using namespace std; int main(){ char data[10000]; cin>>data; cout<<data; ofstream wangyianbo; wangyianbo.open("致班主任.txt"); wangyianbo<<data<<endl; ifstream wangyihang; wangyihang.open("姬霓太美.txt"); wangyihang>>data; cout<<data<<endl; wangyihang.close(); return 0; }
标签:std,文件,main,cout,include,data From: https://www.cnblogs.com/w6826301/p/17808333.html