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