sf::FloatRect rect(0, 0, 100, 200); float height = rect.height;
sf::FloatRect rect(0, 0, 100, 200); rect.height = 300;In this example, we create a FloatRect with a height of 200 and then set the height to 300 using the height attribute. These examples use the SFML library, specifically the sf namespace which is included in the SFML header files.