Skip to content

这里是c++的语法吗? jni可以编译的过吗 #6

Description

@Duum

int largest_unit = 0; // 最大单位
std::string first_part;
std::string second_part;

    if (len > 1 and len <= 2) {
        largest_unit = 1;
    } else if (len > 2 and len <= 3) {
        largest_unit = 2;
    } else if (len > 3 and len <= 4) {
        largest_unit = 3;
    } else if (len > 4 and len <= 8) {
        largest_unit = 4;
    } else if (len > 8) {
        largest_unit = 8;  
    }  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions