From 4ccf8dff608914005eb05dec0724f82223aa739d Mon Sep 17 00:00:00 2001 From: BhaswatiR <114461861+BhaswatiR@users.noreply.github.com> Date: Sat, 1 Oct 2022 19:41:41 +0530 Subject: [PATCH] STL Map Operations Added --- CPP/stl/Maps Operations.cpp | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 CPP/stl/Maps Operations.cpp diff --git a/CPP/stl/Maps Operations.cpp b/CPP/stl/Maps Operations.cpp new file mode 100644 index 00000000..cf29978d --- /dev/null +++ b/CPP/stl/Maps Operations.cpp @@ -0,0 +1,40 @@ +#include +#include +using namespace std; + +int main() +{ + //key,value pairs like dictionary in python + mapmp; + mp.insert(pair(2,20)); + mp.insert(pair(3,10)); + + //mp[key]=value + mp[4]=80; + + cout<first<<" "<second<