]> git.mxchange.org Git - flightgear.git/blob - src/Scenery/maptest.cxx
Windows uses ';' instead of ':' as a path separator.
[flightgear.git] / src / Scenery / maptest.cxx
1 // a simple STL test
2
3 #include <map>    // stl
4 #include <string> // stl
5 #include <stdio.h>
6
7 using namespace std;
8
9 main() {
10     map < string, int, less<string> > mymap;
11     string name;
12     int value;
13
14     mymap["curt"] = 1;
15     mymap["doug"] = 2;
16     mymap["doug"] = 3;
17     mymap["dan"] = 4;
18
19     printf("curt = %d\n", mymap["curt"]);
20     printf("doug = %d\n", mymap["doug"]);
21 }