Skip to content
Snippets Groups Projects
Commit 1e95ba01 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Hash-Tabelle: Lösung zu Aufgabenteil (a)

parent b150843e
No related branches found
No related tags found
No related merge requests found
#include <iostream>
#include <string>
#include <unordered_map>
using namespace std;
int main ()
{
unordered_map <string, string> table;
table.emplace("author", "Martin Sura");
table.emplace("date", "29.04.2018");
table.emplace("version", "1.0");
table.emplace("comment", "Hash table using unordered_map template.");
cout << "author: " << table["author"] << endl;
cout << "date: " << table["date"] << endl;
cout << "version: " << table["version"] << endl;
cout << "comment: " << table["comment"] << endl;
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment