From d91de4b8baf849b08d6248f16c22ea6f9cd26c49 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 3 Apr 2015 10:26:15 -0700 Subject: 1004 --- cpp/010vm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpp/010vm b/cpp/010vm index 5c8e120c..39159e40 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -211,7 +211,11 @@ string slurp_until(istream& in, char delim) { } void dump_memory() { - for (unordered_map::iterator p = Memory.begin(); p != Memory.end(); ++p) { + map ordered(Memory.begin(), Memory.end()); + for (map::iterator p = ordered.begin(); p != ordered.end(); ++p) { cout << p->first << ": " << p->second << '\n'; } } +:(before "End Includes") +#include +using std::map; -- cgit 1.4.1-2-gfad0