2018年11月14日

摘要: pragma solidity ^0.4.10; //枚举类型 contract enumTest{ enum ActionChoices{Left,Right,Straight,Still} // 0 1 2 3 //input/output uint ActionChoices public ... 阅读全文

posted @ 2018-11-14 17:58 eilinge 阅读(335) 评论(0) 推荐(0) 编辑

摘要: pragma solidity ^0.4.20; /* uint8 uint16 ...uint256 int8 int16 int24 ..int256 uint => uint256 int => int256 int8 有符号 +1 ,-3 uint 无符号 1,2 int8 8(位) 111 1111 ~ 0 111 1111 - (1+2+4+8+16+32+64) ~ ... 阅读全文

posted @ 2018-11-14 12:31 eilinge 阅读(213) 评论(0) 推荐(0) 编辑