Introduction to C++: Part Twelve
Pair A pair combines two values into a single value, which can have different data types, represented by the two public attributes of the pair: first and second. // Creating a pair – Method 1 pair<int, string> p1(100, "aaa"); pair<int, string> p2(101, "bbb"); // Creating a pair – Method 2 (Recommended) pair<int, string> p3 = … Read more