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 is 47.7273 rounded
In the compound MgCl2, magnesium donates two electrons, one to each chlorine atom. Which type of compound is this, and is it likely to dissolve in a polar solve
If rain falls today, that is an example of A. weather B. climate C. flooding D. resources
Why do you think it was important for woman and Byzantine
Can someone help me with this and explain how you got it?
Indentify the reasons for the failure of Muhammad Bin Tughlaq's project?
hi! Easy question here, just confused. How do I make the graph? I already created the table, but can you give an example if you can’t solve? (I’m doing more pro
What do students learn at Clown College?
Using the tabular method to solve the following 2x^3+x^2-16x+15 divided by 2x-3
What does the biography take away from the autobiography?