ostringstream的用法
#include <bits/stdc++.h>
using namespace std;
int main() {
double t = 100;
ostringstream oss;
oss << fixed << setprecision(2) << t;
cout << oss.str() << endl;
}
ostringstream的用法
#include <bits/stdc++.h>
using namespace std;
int main() {
double t = 100;
ostringstream oss;
oss << fixed << setprecision(2) << t;
cout << oss.str() << endl;
}