Changeset 583 in Sophya for trunk/SophyaProg/Tests/tnt.cc


Ignore:
Timestamp:
Nov 16, 1999, 6:00:47 PM (26 years ago)
Author:
ansari
Message:

Div. prog test - Reza 16/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/tnt.cc

    r573 r583  
    2929nt1.Print(94, 5);
    3030
     31string fn = "nt.ppf";
     32{
    3133printf("Ecriture NTuple ds nt.ppf ... \n");
    32 nt1.Write("nt.ppf");
     34ObjFileIO<NTuple> fio(&nt1);
     35fio.Write(fn);
     36}
    3337
     38{
    3439printf("Lecture NTuple (nt2) ds nt.ppf ... \n");
    3540
    36 NTuple nt2("nt.ppf");
    37 nt2.Show(cout);
    38 nt2.Print(0, 5);
    39 nt2.Print(18, 5);
    40 nt2.Print(94, 5);
     41ObjFileIO<NTuple> fio(fn);
     42NTuple* nt2 = (NTuple*)fio.DataObj();
     43nt2->Show(cout);
     44nt2->Print(0, 5);
     45nt2->Print(18, 5);
     46nt2->Print(94, 5);
     47}
    4148
     49/*
    4250printf("ReLecture NTuple (nt1) ds nt.ppf ... \n");
    4351
     
    5563nt3.Print(18, 5);
    5664nt3.Print(94, 5);
     65*/
    5766
    5867exit(0);
Note: See TracChangeset for help on using the changeset viewer.