allia

перевод в число

Sep 18th, 2020
963
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. #include <sstream>
  4. #include <string>
  5. using namespace std;
  6.  
  7. stringstream container;
  8. int main()
  9. {
  10.   string a;
  11.   getline (cin, a);
  12.   int x=0;
  13.   container << a;
  14.   container >> x;
  15.   cout << x;
  16. }
RAW Paste Data