I am trying to program a school bulletin (I'm sorry if that's not the right word, what I meant with "bulletin" is the thing were are the grades of each student. English isn't my 1° language) and I want to ask the user the name of the student and then create a
int student_name;
so I don't need to create a 1000 of
int student_1
int student_2
and then just use cin <<. So, how can I do that? I hope my question was easy to understand. Thanks!
std::unordered_map<std::string, int>where the key is the student name and the value is a note. en.cppreference.com/w/cpp/container/unordered_mapstd::vectorand arrays and tables likestd::mapare for.