Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <string>
  2. int main()
  3. {
  4. string S="74";
  5. int N;
  6.  
  7. return 0;
  8. }
  9.  
  10. #include <stdlib.h>
  11.  
  12. n = atoi(S.c_str());
  13.  
  14. #include <iostream>
  15. #include <sstream>
  16. #include <string>
  17. using namespace std;
  18.  
  19. int main () {
  20.  
  21. string S = "74";
  22. istringstream iss (S, istringstream::in);
  23.  
  24. int val;
  25. iss >> val;
  26.  
  27. return 0;
  28. }
  29.  
  30. int num = NULL;
  31.  
  32. for (int i = 0; i < str.length(); i++){
  33.  
  34. num = num*10 + str[i] - 0x30;
  35. }
  36.  
  37. cout << num+1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement