Accepted Answer
struct patientdata{int heightinches;int weightpounds;};void main(){patientdata p;p.heightinches=63;p.weightpounds=115;cout<<"patient data: "<<p.heightinches<<", "<<p.weightpounds;}What is structure in C++?In the C programming language, a "struct" is a composite data type declaration that specifies a physically grouped list of variables in a block of memory with a single name. This allows access to the various variables via a single pointer or by the declared name of the struct, which returns the same address. The use of structures, also known as structs, allows you to collect several related variables in a single location. A member of the structure is referred to as each variable in it. Numerous different data types may be present in a structure. A structure is a singular entity that contains variables of various data types that are logically connected to one another. The functions defined outside the structure have access to all the structure's data members.To know more about structure,https://brainly.com/question/20211782?referrer=searchResults#SPJ4