Changeset 583 in Sophya for trunk/SophyaProg/Tests/tnt.cc
- Timestamp:
- Nov 16, 1999, 6:00:47 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tnt.cc
r573 r583 29 29 nt1.Print(94, 5); 30 30 31 string fn = "nt.ppf"; 32 { 31 33 printf("Ecriture NTuple ds nt.ppf ... \n"); 32 nt1.Write("nt.ppf"); 34 ObjFileIO<NTuple> fio(&nt1); 35 fio.Write(fn); 36 } 33 37 38 { 34 39 printf("Lecture NTuple (nt2) ds nt.ppf ... \n"); 35 40 36 NTuple nt2("nt.ppf"); 37 nt2.Show(cout); 38 nt2.Print(0, 5); 39 nt2.Print(18, 5); 40 nt2.Print(94, 5); 41 ObjFileIO<NTuple> fio(fn); 42 NTuple* nt2 = (NTuple*)fio.DataObj(); 43 nt2->Show(cout); 44 nt2->Print(0, 5); 45 nt2->Print(18, 5); 46 nt2->Print(94, 5); 47 } 41 48 49 /* 42 50 printf("ReLecture NTuple (nt1) ds nt.ppf ... \n"); 43 51 … … 55 63 nt3.Print(18, 5); 56 64 nt3.Print(94, 5); 65 */ 57 66 58 67 exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.