/[cvs]/dary/test.cpp
ViewVC logotype

Contents of /dary/test.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (vendor branch)
Tue Oct 5 19:56:31 2004 UTC (14 years ago) by riso
Branch: riso, MAIN
CVS Tags: init, Obalky, HEAD
Changes since 1.1: +0 -0 lines
Initial import


1 #include "db.h"
2
3 int main(int argc, char **argv) {
4 tPersonId p;
5 tEntryId e;
6
7 if (argc<=1) {
8 OpenDb("./");
9 NewPerson("Richard", "Kralovic");
10 NewPerson("Lucian", "Bogucki");
11 NewEntry(GetPerson("Richard", "Kralovic"), 2, 100);
12 NewEntry(GetPerson("Lucian", "Bogucki"), 3, 300);
13 } else {
14 OpenDb("./");
15 UpdatePerson(GetPerson("Richard", "Kralovic"), "Richard", "Krá¾oviè", "Jurigovo nám 7.");
16 CloseDb();
17 }
18 return 0;
19 }

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.26