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).

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).

LANGUAGE: C++

CHALLENGE:

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).

SOLUTION:


struct SREC{
    NAME name;
    string grade;
};

Add comment