Guest User

Untitled

a guest
Nov 9th, 2019
104
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