Iam new to vc++.Iam trying to write program using map::insert function in below code
int _tmain(int argc, _TCHAR* argv[]){ int arr[3] ={0,1,2}; map
storing C array is not a good idea, use std::array instead.
std::array
using Arr = std::array<int, 3>; Arr arr = { 0, 1, 2 }; std::map <int, Arr> mymap; auto it = mymap.begin( ); mymap.insert( it, std::make_pair( 1, arr ) );