The conversation between human and AI assistant.
[|Human|] Transform the given code to use structure data type.
[|AI|] struct Person {
    string name;
    int age;
    float height;
};

Person p;
p.name = "John";
p.age = 40;
p.height = 1.87;
[|Human|] 
Transform the given code to use structure data type.