【发布时间】:2016-08-16 09:48:09
【问题描述】:
我想读一行这样的结构:
7 12 129224 2 124 12 2 51
并将字符串的元素放入 int 列表中,如下所示:
[7; 12; 129224; 2; 124; 12; 2; 51]
数字可以是任意大小,不考虑负数。这是我目前所拥有的:
let size_s = read_int();; (* size_s is the number of elements within the String. In this case it's 8. *)
let s = read_line();;
【问题讨论】:
标签: ocaml