Answers for "can we use map in function c++"

C++
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

Code answers related to "can we use map in function c++"

Browse Popular Code Answers by Language