0

What I'm trying to know is can I declare a map having a non-primitive key like this?

map <Aluno, int> grades;

Where Aluno is an object. My teacher didn't know the answer so I ask you guys. Is it possible or will I have to use integers, string, etc.?

Mat
  • 202,337
  • 40
  • 393
  • 406
André Silva
  • 1,110
  • 8
  • 24

0 Answers0