aliyahmorgan654 aliyahmorgan654
  • 03-08-2019
  • Computers and Technology
contestada

Assume that the type NAME has already been defined. Define a new type, SREC that is a structure consisting of two fields: name (a NAME) and grade (a string).

Respuesta :

ofentsemaphalla
ofentsemaphalla ofentsemaphalla
  • 06-08-2019

Answer:

struct SREC

{

       NAME name;

       string grade;

};

Explanation:

The first line declares a new data type, a structure, of name SREC. The open and close braces, are used to contain other data fields or members, namely: name and grade variables.

The NAME has already been defined, hence there is no declaration method in the SREC structure.

Answer Link

Otras preguntas

Who controlled the Holy Land in 1095?
In how many cells are the functions of unicellular organisms performed?
a die with 8 sides is rolled.what is the probability of rolling a number less than 7
The two-hundred-year period in Roman history marked by freedom, stability, and peace was known as the _____.
How do Crocodiles See, Hear, and Smell?
Which amendment was designed to allay Anti–Federalist fears of a central government with too much power
a baseball player reaches first base 30% out of 50 time he is at bat, about how many times will the player reach first base?
Estimate each product 3/4 times 23
Which of the following statements most accurately describes the economy that exists in Hong Kong? It is a command economy controlled by the Chinese government.
Monica has a triangular piece of fabric the height of the triangle is 15 inches and the triangles base is 6 inches Monica says that the area of the fabric is 90