📜  Solidity 结构中单个字段的赋值 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.970000             🧑  作者: Mango

代码示例1
struct Account {
    uint balance;
    uint dailylimit;
}

Account my_account = Account(0, 10);

function setBalance(uint new_balance) public {
    my_account.balance = new_balance; // assignment to a single struct member/attribute
}