All pastes #368104 Raw Edit

Unnamed

public cpp v1 · immutable
#368104 ·published 2007-02-22 20:47 UTC
rendered paste body
int digit2Int(char c){  return (c - '0'); //since c is a character between 0 and 9 and they go in order subtracting character 0 from c gives you it's digit value}