Answers for "array in map c++"

C++
2

map in cpp

#include <map>

// empty map container 
map<int, int> gquiz1; 
  
// insert elements in random order 
gquiz1.insert(pair<int, int>(1, 40));
Posted by: Guest on October-01-2020
0

map in cpp

#include <map>

int main(){
  //new map
  std::map <int,int> myMap;
  myMap[0] = 1;
  myMap[1] = 2;
  myMap[2] = 3;
  myMap[3] = 4;
}
Posted by: Guest on November-11-2020

Browse Popular Code Answers by Language