//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.19; contract Test { struct Classroom { string name; Student[] students; } struct Student { string name; } Classroom[] public classrooms; function createClassroom(string _name) public { classrooms.push(Classroom(_name, new Student[](0))); } }
0.4.19