+ 2

How use #include <set>

help me to use set library in cpp with examples plz for instance, u have add many number of students with student id and students cannot enter same id(validation) plz help me validation of set library

2nd Feb 2018, 6:31 AM
FMSuhail
FMSuhail - avatar
1 Antwort
+ 4
Set uses std namespace insert(key) to add in new elements. find(key) returns iterator to the key or end() iterator if key wasn't found. Describe what you want to do so I can explain in more detail.
2nd Feb 2018, 7:52 AM
BlazingMagpie
BlazingMagpie - avatar