2008-07-20から1日間の記事一覧
昨日書いたコードは int size = bar.baz_size(); for (int i = 0; i < size; i++) { cout << "bar.baz[" << i << "].type: " << bar.baz(i).type() << endl; } $ ./read bar.baz[0].type: 0 bar.baz[1].type: 1 bar.baz[2].type: 2 このようにして、repeated…
昨日書いたコードは int size = bar.baz_size(); for (int i = 0; i < size; i++) { cout << "bar.baz[" << i << "].type: " << bar.baz(i).type() << endl; } $ ./read bar.baz[0].type: 0 bar.baz[1].type: 1 bar.baz[2].type: 2 このようにして、repeated…