Ignore:
Timestamp:
Aug 8, 2024, 10:39:40 PM (3 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
acab1bd
Parents:
c1c0efdb
Message:

Minor update on the thesis (add auto initialization and update future work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/jiada_liang_MMath/test.pas

    rc1c0efdb r7568e5c  
    44        Weekday = Mon..Fri;
    55        Weekend = Sat..Sun;
    6 type Count = ( Zero, One, Two, Ten = 10, Eleven );
     6type Count = ( Zero, One, Two, Ten = 10, Eleven=10 );
     7type RR = ( A, B, C );
     8
    79var day   : Week;
    810        wday  : Weekday;
     
    1012        lunch : array[Week] of Integer;
    1113        cnt       :  Count;
     14// procedure P1(v:Week);
     15// begin
     16//      Writeln('Week');
     17// end;
     18procedure P1(v:Weekday);
     19begin
     20        Writeln('Weekday');
     21end;
     22procedure P1(v:RR);
     23begin
     24        Writeln('RR');
     25end;
    1226begin
    1327        day := Sat;
     
    4054        Writeln();
    4155        for day := Mon to Sat do
     56                lunch[day] := ord(day) * 10;
     57        for day := Mon to Sun do
    4258                Write( lunch[day], ' ' );
    4359        Writeln();
     
    4561                Write( ord( cnt ), ' ' );
    4662        end;
     63        day := Tue;
     64        P1( day );
    4765        Writeln();
     66
     67        case (day) of
     68                Mon: writeln('Excellent!' );
     69                Tue: writeln('Well done' );
     70        end;
    4871end.
    4972
Note: See TracChangeset for help on using the changeset viewer.