标签:txt 1.0 inf idt while IV bubuko system unset
#include<iostream> using namespace std; int main() { ios_base::fmtflags original_flags = cout.flags(); cout << 812 << ‘|‘; cout.setf(ios_base::left, ios_base::adjustfield); cout.width(10); cout << 813 << 815 << ‘\n‘; cout.unsetf(ios_base::adjustfield); cout.precision(2); cout.setf(ios_base::uppercase | ios_base::scientific); cout << 831.0; cout.flags(original_flags); return 0; }
#include<iostream>
#include<fstream>
#include<Windows.h>
using namespace std;
int main()
{
ofstream outFile;
outFile.open(("D:\\biubiubiu.txt"));
outFile<<"well done!"<<endl;
outFile.close();
WinExec("notepad.exe D:\\biubiubiu.txt",SW_SHOW);
system("pause");
return 0;
}
#include<iostream> #include<fstream> #include<string> using namespace std; int main() { ifstream outFile("D:\\biubiubiu.txt"); string file; if(outFile) { while(getline(outFile,file)) { cout<<file<<endl; } } outFile.close(); return 0; }
O的K!
标签:txt 1.0 inf idt while IV bubuko system unset
原文地址:https://www.cnblogs.com/lirunzeyo/p/9206737.html