Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <map>
- #include <string>
- struct admin {
- int level;
- };
- std::map<std::string,struct admin> adminmap;
- int main() {
- adminmap["dartakous"].level = 20;
- std::cout << "hi!" << std::endl;
- std::cout << adminmap["dartakous"].level << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement