2007-12-17 22:00:54 +00:00
|
|
|
#include <db_cxx.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main()
|
|
|
|
{
|
2007-12-20 18:34:33 +00:00
|
|
|
u_int32_t size = 3;
|
|
|
|
u_int32_t flags = 5;
|
|
|
|
u_int32_t ulen = 7;
|
|
|
|
void* data = &size;
|
2007-12-17 22:00:54 +00:00
|
|
|
Dbt dbt;
|
2007-12-20 18:34:33 +00:00
|
|
|
|
|
|
|
dbt.set_size(size);
|
|
|
|
dbt.set_flags(flags);
|
|
|
|
dbt.set_data(data);
|
|
|
|
dbt.set_ulen(ulen);
|
|
|
|
assert(dbt.get_size() == size);
|
|
|
|
assert(dbt.get_flags() == flags);
|
|
|
|
assert(dbt.get_data() == data);
|
|
|
|
assert(dbt.get_ulen() == ulen);
|
2007-12-17 22:00:54 +00:00
|
|
|
cout << "Hello World!" << endl; cout << "Welcome to C++ Programming" << endl;
|
|
|
|
return 0;
|
|
|
|
}
|