From a3af4ed1d879a5eb464c21ef9cb1fdfe94f70b9a Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 9 Oct 2009 09:01:44 +0000 Subject: [PATCH] make it compile again --- src/Scenery/test.cxx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Scenery/test.cxx b/src/Scenery/test.cxx index 4b97c385c..89fc0d932 100644 --- a/src/Scenery/test.cxx +++ b/src/Scenery/test.cxx @@ -2,10 +2,14 @@ #include #include -#include -#include +#include #include +using std::deque; +using std::map; +using std::string; +using std::less; +using std::cout; main() { deque < int > mylist; @@ -46,16 +50,18 @@ main() { mymap["dan"] = 24; printf("curt age = %d\n", mymap["curt"]); - printf("doug age = %d\n", mymap["doug"]); + printf("dan age = %d\n", mymap["dan"]); - map < string, int, less > :: iterator test = mymap.find("dan"); + map < string, int, less > :: iterator test = mymap.find("doug"); if ( test == mymap.end() ) { - printf("dan age = not found\n"); + printf("doug age = not found\n"); } else { - printf("dan age = %d\n", (*test).second); + printf("doug age = %d\n", (*test).second); + mymap.erase( "doug" ); } + printf("\n"); map < string, int, less > :: iterator mapcurrent = mymap.begin(); map < string, int, less > :: iterator maplast = mymap.end(); while ( mapcurrent != maplast ) {