X1236: Musical instruments with C++ structs

Define a struct called Instrument to describe a musical instrument with the following attributes:

  • name - a word that the instrument is called
  • family - the name of the family of instruments (e.g. wind, percussion, string) it belongs to
  • notes - the whole number of distinct pitches it can play

Your Answer:

Reset

Practice a different C++ exercise

Feedback

Your feedback will appear here when you check your answer.