写文件
#include#include using namespace std; int main(int argc, char** argv) { ofstream ofs; ofs.open("test.txt",ios::out); ofs<<"姓名:ty"<

写文件
#include#include using namespace std; int main(int argc, char** argv) { ofstream ofs; ofs.open("test.txt",ios::out); ofs<<"姓名:ty"<