local v = CVector();
    v:push_back('1');--增加
    v:push_back('2');
    v:dump();--打印数组信息
    print(v:size());--大小
    v:set(0,'3');--修改值
    v:dump();
    print(v:get(1));--获取值
    local str = v:toString();--转字符串
    print(str);
    v:clear();--清空
    str = '1,2,3,4';
    v:fromString(str,',');--从字符串获取
    v:dump();
Copyright © TouchNet 2015 all right reserved,powered by Gitbook最后修订时间: 2022-06-21 09:21:04

results matching ""

    No results matching ""