Mega Code Archive
Categories
/
C++ Tutorial
/
Map Multimap
Assign value directly to first and second
#include
#include
#include
using namespace std; int main(int argc, char** argv) { pair
myPair("hello", 5), myOtherPair; myOtherPair.first = "hello"; myOtherPair.second = 6; return (0); }