#include <iostream>

#include <string>


struct Person {

  std::string name;

  int age;

  float height;

};


int main() {

  // Declare a variable of type Person

  Person person;


  // Assign values to the members of the Person structure

  person.name = "John Smith";

  person.age = 30;

  person.height = 1.75;


  // Print the values of the members of the Person structure

  std::cout << "Name: " << person.name << std::endl;

  std::cout << "Age: " << person.age << std::endl;

  std::cout << "Height: " << person.height << std::endl;


  return 0;

}

output :

Name: John Smith
Age: 30
Height: 1.75