SHARE
TWEET

Untitled

a guest Nov 9th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int lineToNumber(char* expression) {
  2.     int answer = 0;
  3.     for (size_t i = 0; i < strlen(expression); i++) {
  4.         answer = 10 * answer + expression[i] - '0';
  5.     }
  6.  
  7.     return answer;
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top