1
0
Fork 0
flightgear/src/Scenery/maptest.cxx
Tim Moore c90db01dc8 source tree reorganization prior to flightgear 0.7
SimGear and TerraGear appear to have been split off at this time.
2009-09-14 14:26:20 +02:00

21 lines
379 B
C++

// a simple STL test
#include <map> // stl
#include <string> // stl
#include <stdio.h>
using namespace std;
main() {
map < string, int, less<string> > mymap;
string name;
int value;
mymap["curt"] = 1;
mymap["doug"] = 2;
mymap["doug"] = 3;
mymap["dan"] = 4;
printf("curt = %d\n", mymap["curt"]);
printf("doug = %d\n", mymap["doug"]);
}