"basic ex of maps in c++" Code Answer's

You're definitely familiar with the best coding language C++ that developers use to develop their projects and they get all their queries like "basic ex of maps in c++" answered properly. Developers are finding an appropriate answer about basic ex of maps in c++ related to the C++ coding language. By visiting this online portal developers get answers concerning C++ codes question like basic ex of maps in c++. Enter your desired code related query in the search bar and get every piece of information about C++ code related question on basic ex of maps in c++. 

basic ex of maps in c++

By Worrisome WombatWorrisome Wombat on Jun 12, 2020
#include <iostream> 
#include <iterator> 
#include <map> 
   
using namespace std; 
   
int main() 
{ 
     map<int, int> marks; 
     marks.insert(pair<int, int>(160, 42)); 
     marks.insert(pair<int, int>(161, 30)); 
     marks.insert(pair<int, int>(162, 40)); 
     marks.insert(pair<int, int>(163, 50)); 
     marks.insert(pair<int, int>(164, 31)); 
     marks.insert(pair<int, int>(165, 12)); 
     marks.insert(pair<int, int>(166, 34)); 
   
     map<int, int>::iterator itr; 
     cout << "nThe map marks is : n"; 
     cout << "ROLL NO.tMarksn"; 
     for (itr =  marks.begin(); itr !=  marks.end(); ++itr) { 
        cout  << itr->first 
             << "t   t" << itr->second << 'n'; 
     } 
     cout << endl; 
     return 0;     
  }

Source: www.edureka.co

Add Comment

0

All those coders who are working on the C++ based application and are stuck on basic ex of maps in c++ can get a collection of related answers to their query. Programmers need to enter their query on basic ex of maps in c++ related to C++ code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about basic ex of maps in c++ for the programmers working on C++ code while coding their module. Coders are also allowed to rectify already present answers of basic ex of maps in c++ while working on the C++ language code. Developers can add up suggestions if they deem fit any other answer relating to "basic ex of maps in c++". Visit this developer's friendly online web community, CodeProZone, and get your queries like basic ex of maps in c++ resolved professionally and stay updated to the latest C++ updates. 

C++ answers related to "basic ex of maps in c++"

View All C++ queries

C++ queries related to "basic ex of maps in c++"

Browse Other Code Languages

CodeProZone