openbabelがC++で書かれているので、今年はC++を覚えようと。
int a = (int)('0'); // 48
これはpythonでいうord
>>> ord("0")
48
で、最初よく分からなかったのでこれ。
(char)(5 + '0'); // 5
結局
int a = 5 + '0'; // 53
となっているからint + charみたいなのもよろしくやっといてくれるっちゅう理解でいいのかな。
とりあえずクックブックでも買うべきか。

D. Ryan Stephens,Christopher Diggins,Jonathan Turkanis,Jeff Cogswell
オライリー・ジャパン / ¥ 4,515 ()
在庫あり。