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

A criticism of the American system of federalism is that it is
how did geography influence the location of European colonies?
2. What two features must a sample have if it is to accurately represent a population?
[tex]log_{8 x^{2} -23x+15}(2x-2) \leq 0[/tex]
The IMF and World Bank have been criticized as undemocratic. Why?
The article identifies a ''tacit racial hierarchy'' in the animated film, Rio 2, which replicates parttens in racial stereotyping throughout movie history. Base
Climate change studies suggest the worst impacts will be felt by the wealthiest people. (Points : 1) True False
What was the prevailing economic challenge the United States faced at the start of World War II?
What was a main purpose of monasteries built by the Catholic Church?
A sample of helium gas is in a sealed, rigid container. What occurs as the temperature of the sample is increased?