Given a variable , mets, of type Team– a structured type with a field named pitcher (a string ), write a statement that assigns “Acosta” to that field (pitcher) of that variable (mets).

Given a variable , mets, of type  Team– a structured type with a field named pitcher (a string ), write a statement that assigns  “Acosta” to that field (pitcher) of that variable (mets).

LANGUAGE: C++

CHALLENGE:

Given a variable , mets, of type Team– a structured type with a field named pitcher (a string ), write a statement that assigns “Acosta” to that field (pitcher) of that variable (mets).

SOLUTION:


mets.pitcher="Acosta";

Add comment