1 #include <iostream>
 2 #include <string>
 3 #include <sstream>
 4 #include <fstream>
 5 
 6 //#define LOCAL
 7 
 8 
 9 using namespace std;
10 
11 int main()
12 {
13     #ifdef LOCAL
14     fstream cout("data.out");
15     #endif // LOCAL
16 
17     string s1 = "50 60";
18     stringstream ss;
19     ss<<s1;
20     ss<<s1;
21     int n = 0;
22     ss >> n;
23     cout<<n<<endl;
24     return 0;
25 }

 

相关文章:

  • 2021-06-05
  • 2022-01-16
  • 2022-12-23
  • 2021-09-10
  • 2021-09-18
  • 2021-10-16
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-12-03
  • 2021-08-26
相关资源
相似解决方案