//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.25; contract SimpleStore { string[12] passagesArtistes; uint creneauxLibres = 12; function sInscrire(string memory nomDArtiste) public { if(creneauxLibres>0){ passagesArtistes[12-creneauxLibres] = nomDArtiste; creneauxLibres -= 1; } } uint tour; function passerArtisteSuivant() public { if(tour < passagesArtistes.length){ tour += 1; } } function artisteEnCours () public constant returns (string) { if(tour < passagesArtistes.length){ return passagesArtistes[tour]; } else{ return 'FIN'; } } }
0.4.25