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

What political goal did George Washington and Alexander Hamilton have in common? 1. a strong federal government 2. resisting the creation of a national bank 3.
Can I get help with these two questions, Please? Thanks in Advance! :)
What's five ways that John F. Kennedy impacted the USA for the better? (Explain.) Thank you.
Wanted to know if my answer is right, I’m not 100% sure.
I don't know how to do this one. plz help
What is f(3)? –9 –1 1 9
Which element is commonly found in meteorites A. Carbon B.Oxygen C.Hydrogen D.Iron
[tex]Evaluate \left[\begin{array}{ccc}6&-2\end{array}\right] \\\\\left[\begin{array}{ccc}0\\3\end{array}\right][/tex] Messed up in the other one.
What do the British risk losing in the war of 1812?
Which of the following became secretary of state as part of the “corrupt bargain” of 1824?