区块链
后知后觉者
这个作者很懒,什么都没留下…
展开
-
【以太坊】智能合约Solidity学习(第三课)
@@@ 合约的构造函数跟C++,java类似,合约的构造函数名跟合约名一样,其会在合约创建时仅被调用一次/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies...原创 2018-07-09 23:31:25 · 326 阅读 · 0 评论 -
【以太坊】智能合约Solidity学习(第一课)
@@@数学运算加(+),减(-),乘(*),除(/), 取模(%),求方(**)例子:a ** b; //a的b次方 @@@数组分为固定数组与动态数组// Array with a fixed length of 2 elements:uint[2] fixedArray;// another fixed Array, can contain 5 strings:...原创 2018-07-05 18:17:24 · 592 阅读 · 0 评论 -
【以太坊】智能合约Solidity学习(第二课)
@@@ Mapping 映射这是solidity语言中提供的一种强大的数据结构,作用就像传统面向对象编程语言C++、Java中的map一样。关键字:mapping// For a financial app, storing a uint that holds the user's account balance:mapping (address => uint) publi...原创 2018-07-06 19:09:01 · 436 阅读 · 0 评论