0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

クリプトゾンビメモ(レッスン1)

Last updated at Posted at 2018-07-15

・uint = unsigned integer(符号なし整数)
・構造体名[ ] public 名前
・private関数の宣言方法。関数名+private。関数のパラメーターと同様に、アンダースコア(_)で始めるのが通例だから覚えておく。


uint[] numbers;

function _addToArray(uint _number) private {
  numbers.push(_number);
}

・戻り値の型を指定して関数宣言する(握るという関数に刺身・わさび・シャリという引数をあげて処理してもらったら寿司が戻り値)
・view関数よりもpure関数のほうが制限されている(view関数はぎりぎり読み取りだけは出来る)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?