Example: people[0] = Person(3, "Bob"); people[1] = Person(4, "Joe"); people[2] = Person(5, "Sue"); Example 2: people.insert(std::pair <int, Person> (0, Person(3, "Bob"))); people.insert(std::pair <int, Person> (1, Person(4, "Joe"))); people.insert(std::pair <int, Person> (2, Person(5, "Sue")));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter