//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity 0.4.18; contract MyContract{ Person[] public people; struct Person{ string _firstname; string _lastname; } function addPerson (string memory _firstname,string memory _lastname)public { people.push(Person(_firstname , _lastname)); } }
0.4.18