//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; /* Basic Array Play 1 - just practicing some simple stuff Enter a bunch of names, in quotes,hitting setNames after each Get a count or recall a specific one by entering a number starting with 1 for the first. (I know arrays start at 0, I jig'd it ) */ contract ArrayTest { string[] internal names; function setNames(string Names) public { names.push(Names) -1; } function getNamesPerOrder(uint who) view public returns(string) { who = who -1; return names[who]; } function HowManySoFar(string hitMe) view public returns(uint) { hitMe = hitMe; return names.length; } // hitMe is a placeholder to hold button interactive. I ignore yellow warning }
0.4.18