Last change
on this file since 2586 was 2322, checked in by cmv, 23 years ago |
- passage xxstream.h en xxstream
- compile avec gcc_3.2, gcc_2.96 et cxx
En 3.2 le seek from ::end semble marcher (voir Eval/COS/pbseekios.cc)
rz+cmv 11/2/2003
|
File size:
660 bytes
|
Rev | Line | |
---|
[1170] | 1 | #include <stdio.h>
|
---|
| 2 | #include <stdlib.h>
|
---|
| 3 | #include <math.h>
|
---|
[2322] | 4 | #include <iostream>
|
---|
[1170] | 5 |
|
---|
| 6 | #include "ppersist.h"
|
---|
| 7 | int main(int narg, char *arg[])
|
---|
| 8 | {
|
---|
| 9 | char * sid[3] = { "Hello","Reza","ERIC" } ;
|
---|
| 10 | uint_8 code[3];
|
---|
| 11 | int k;
|
---|
| 12 | printf(" ------- Testing SOPHYA Hash coding --------- \n");
|
---|
| 13 | printf(" Size of uint_4 = %d \n ", sizeof(uint_4));
|
---|
| 14 | printf(" Size of uint_8 = %d \n ", sizeof(uint_8));
|
---|
| 15 | printf(" Size of unsigned long = %d \n ", sizeof(unsigned long));
|
---|
| 16 | for(k=0; k<3; k++) {
|
---|
| 17 | code[k] = PPersistRegistrar<double>::Hash(sid[k]);
|
---|
[1171] | 18 | printf(" Resultat de Hash sur %s = %lx (%ld) \n", sid[k], code[k], code[k]);
|
---|
[1170] | 19 | cout << " Result--- " << code[k] << endl;
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.