ultimatepp/tutorial/Ntl14/Ntl14.cpp
cxl e5dfeba4be cpp11 branch - committing the merge (rest of it)
git-svn-id: svn://ultimatepp.org/upp/trunk@7048 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-03-16 16:35:29 +00:00

25 lines
375 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
SortedIndex<int> x;
x.Add(5);
x.Add(3);
x.Add(7);
x.Add(1);
DUMPC(x);
DUMP(x.Find(3));
DUMP(x.FindLowerBound(3));
DUMP(x.FindUpperBound(6));
SortedVectorMap<String, int> m;
m.Add("zulu", 11);
m.Add("frank", 12);
m.Add("alfa", 13);
DUMPM(m);
DUMP(m.Get("zulu"));
}