projects
/
yandex-traffic
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Implemented table of regions.
[yandex-traffic]
/
tests
/
regions
/
main.cpp
1
#include <stdio.h>
2
#include <QtCore>
3
4
#include <regions.hpp>
5
6
7
int main()
8
{
9
RegionsTable table;
10
const RegionInfo *ri;
11
12
ri = table.lookup ("1");
13
if (ri)
14
printf ("Region 1 is %s\n", ri->name ().toUtf8 ().constData ());
15
else
16
printf ("Region 1 is not found\n");
17
18
return 0;
19
}
20