2007-09-12から1日間の記事一覧

Perlの代替として(6)

sort(2) クラスのオブジェクトのソートは次のようにする。 import std.stream; import std.cstream; import std.string;void main(char[][] arg) { class cData { int rank, value; this(int a, int b) { rank = a; value = b; } int opCmp(Object o) { cD…