home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b034 / gz.img / CBHS-1.PRG < prev    next >
Encoding:
Text File  |  1990-02-28  |  5.3 KB  |  176 lines

  1. *│╔▒╛║╦╦π╫╙│╠╨≥╓«╥╗(╗∙▒╛╔·▓·╖╓┼Σ):CBHS-1.PRG
  2. set talk off
  3. clear
  4. dimension a(1,18)
  5. c1=0.00
  6. c2=0.00
  7. c3=0.00
  8. c4=0.00
  9. c5=0.00
  10. c6=0.00
  11. c7=0.00
  12. c8=0.00
  13. c9=0.00
  14. c10=0.00
  15. c11=0.00
  16. c12=0.00
  17. c13=0.00
  18. select 1
  19. use &qbl4 alias z1
  20. select 2
  21. use &qbl5 alias z2
  22. select 3
  23. use &qbl3 alias z3
  24. go 1
  25. sum next 1 HG┴┐,HG│╔▒╛,DG┴┐,DG│╔▒╛,╞ß┴╧,╕¿┴╧,═Γ╣║╝■,╝╙╣ñ╖╤,┤≥░ⁿ╖╤,╚╝┴╧,╢»┴ª,╣ñ╫╩,╕ú└√╖╤,│╡╝Σ╛¡╖╤,╖╧╞╖,╣▄└φ╖╤ to n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,n14,n15,n16
  26. select 1
  27. nn=0
  28. do while nn<10
  29. t=0
  30. do while t<=17
  31. t=t+1
  32. store 0.00 to a(t)
  33. enddo
  34. nn=nn+1
  35. do case
  36.    case nn=1
  37.    ptbl=xg(115-qbl2)
  38.    m=3
  39.    case nn=2
  40.    ptbl=xg(116-qbl2)
  41.    m=4
  42.    case nn=3
  43.    ptbl=xg(117-qbl2)
  44.    m=12
  45.    case nn=4
  46.    ptbl=xg(118-qbl2)
  47.    m=13
  48.    case nn=5
  49.    ptbl=xg(119-qbl2)
  50.    m=14
  51.    case nn=6
  52.    ptbl=xg(120-qbl2)
  53.    m=15
  54.    case nn=7
  55.    ptbl=xg(121-qbl2)
  56.    m=16
  57.    case nn=8
  58.    ptbl=xg(122-qbl2)
  59.    m=17
  60.    case nn=9
  61.    ptbl=xg(123-qbl2)
  62.    m=18
  63.    case nn=10
  64.    ptbl=xg(124-qbl2)
  65.    m=19
  66. endcase
  67. do c:cbhs-1a
  68. go m
  69. replace next 1 HG╓╪┴┐ with a(1),HG╜≡╢ε with a(2),DG╓╪┴┐ with a(3),DG╜≡╢ε with a(4),╞ß┴╧ with a(5),╕¿┴╧ with a(6),═Γ╣║╝■ with a(7),╝╙╣ñ╖╤ with a(8),┤≥░ⁿ╖╤ with a(9)
  70. replace next 1 ▓─┴╧▓ε╥∞ with a(10),╚╝┴╧ with a(11),╢»┴ª with a(12),╣ñ╫╩ with a(13),╕ú└√╖╤ with a(14),│╡╝Σ╛¡╖╤ with a(15),╖╧╞╖ with a(16),╣▄└φ╖╤ with a(17),╖╤╙├▓ε╥∞ with a(18)
  71. enddo
  72. aa4='      '
  73. bb4=.t.
  74. do while bb4
  75. clear
  76. @ 2,25 say '╟δ╩Σ╚δ╧┬├µ╧ε─┐╡─▒╛╘┬╖╧╞╖╦≡╩º╩²'
  77. @ 3,25 say '=============================='
  78. @ 5,26 say '║╕╣▄╓╪┴┐     ' get c1
  79. @ 6,26 say '║╕╣▄╜≡╢ε     ' get c2
  80. @ 7,26 say '┤°╕╓╓╪┴┐     ' get c3
  81. @ 8,26 say '┤°╕╓╜≡╢ε     ' get c4
  82. @ 9,26 say '╕¿┴╧         ' get c5
  83. @ 10,26 say '╚╝┴╧         ' get c6
  84. @ 11,26 say '╢»┴ª         ' get c7
  85. @ 12,26 say '╣ñ╫╩         ' get c8
  86. @ 13,26 say '╕ú└√╖╤       ' get c9
  87. @ 14,26 say '│╡╝Σ╛¡╖╤     ' get c10
  88. @ 15,26 say '╦≡╩º╣ñ╩▒     ' get c11
  89. @ 16,26 say '║╕╣▄▓╨╓╡     ' get c12
  90. @ 17,26 say '┤°╕╓▓╨╓╡     ' get c13
  91.      read
  92. @ 19,20 say '╔╧├µ╩Σ╚δ╡─╩²╛▌╢╘┬≡(Y/N)?   ' get aa4
  93.      read
  94. if aa4='Y'.or.aa4='y'
  95.    bb4=.f.
  96. endif
  97. enddo
  98. go 8
  99. replace next 1 HG╓╪┴┐ with c1,HG╜≡╢ε with c2,DG╓╪┴┐ with c3,DG╜≡╢ε with c4,╕¿┴╧ with c5,╚╝┴╧ with c6,╢»┴ª with c7,╣ñ╫╩ with c8,╕ú└√╖╤ with c9,│╡╝Σ╛¡╖╤ with c10
  100. go 9
  101. replace next 1 HG╜≡╢ε with c2-c12,DG╜≡╢ε with c4-c13,╕¿┴╧ with c5,╚╝┴╧ with c6,╢»┴ª with c7,╣ñ╫╩ with c8,╕ú└√╖╤ with c9,│╡╝Σ╛¡╖╤ with c10
  102. go 10
  103. replace next 1 HG╜≡╢ε with c12,DG╜≡╢ε with c13
  104. replace all ║╧╝╞ with HG╜≡╢ε+DG╜≡╢ε+╞ß┴╧+╕¿┴╧+═Γ╣║╝■+╝╙╣ñ╖╤+┤≥░ⁿ╖╤+▓─┴╧▓ε╥∞+╚╝┴╧+╢»┴ª+╣ñ╫╩+╕ú└√╖╤+│╡╝Σ╛¡╖╤+╖╧╞╖+╣▄└φ╖╤+╖╤╙├▓ε╥∞
  105. sum all HG╓╪┴┐,HG╜≡╢ε,DG╓╪┴┐,DG╜≡╢ε,╞ß┴╧,╕¿┴╧,═Γ╣║╝■,╝╙╣ñ╖╤,┤≥░ⁿ╖╤,▓─┴╧▓ε╥∞,╚╝┴╧,╢»┴ª,╣ñ╫╩,╕ú└√╖╤,│╡╝Σ╛¡╖╤,╖╧╞╖,╣▄└φ╖╤,╖╤╙├▓ε╥∞,║╧╝╞ to h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13,h14,h15,h16,h17,h18,h19 for ▒α║┼<4
  106. go 4
  107. h1=h1-HG╓╪┴┐
  108. h2=h2-HG╜≡╢ε
  109. h3=h3-DG╓╪┴┐
  110. h4=h4-DG╜≡╢ε
  111. h5=h5-╞ß┴╧
  112. h6=h6-╕¿┴╧
  113. h7=h7-═Γ╣║╝■
  114. h8=h8-╝╙╣ñ╖╤
  115. h9=h9-┤≥░ⁿ╖╤
  116. h10=h10-▓─┴╧▓ε╥∞
  117. h11=h11-╚╝┴╧
  118. h12=h12-╢»┴ª
  119. h13=h13-╣ñ╫╩
  120. h14=h14-╕ú└√╖╤
  121. h15=h15-│╡╝Σ╛¡╖╤
  122. h16=h16-╖╧╞╖
  123. h17=h17-╣▄└φ╖╤
  124. h18=h18-╖╤╙├▓ε╥∞
  125. h19=h19-║╧╝╞
  126. go 6
  127. replace next 1 HG╓╪┴┐ with h1,HG╜≡╢ε with h2,DG╓╪┴┐ with h3,DG╜≡╢ε with h4,╞ß┴╧ with h5,╕¿┴╧ with h6,═Γ╣║╝■ with h7
  128. replace next 1 ╝╙╣ñ╖╤ with h8,┤≥░ⁿ╖╤ with h9,▓─┴╧▓ε╥∞ with h10,╚╝┴╧ with h11,╢»┴ª with h12,╣ñ╫╩ with h13,╕ú└√╖╤ with h14,│╡╝Σ╛¡╖╤ with h15,╖╧╞╖ with h16,╣▄└φ╖╤ with h17,╖╤╙├▓ε╥∞ with h18,║╧╝╞ with h19
  129. sum all HG╓╪┴┐,HG╜≡╢ε,DG╓╪┴┐,DG╜≡╢ε,╞ß┴╧,╕¿┴╧,═Γ╣║╝■,╝╙╣ñ╖╤,┤≥░ⁿ╖╤,▓─┴╧▓ε╥∞,╚╝┴╧,╢»┴ª,╣ñ╫╩,╕ú└√╖╤,│╡╝Σ╛¡╖╤,╖╧╞╖,╣▄└φ╖╤,╖╤╙├▓ε╥∞,║╧╝╞ to i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,i12,i13,i14,i15,i16,i17,i18,i19 for ▒α║┼=8.or.(▒α║┼>11.and.▒α║┼<20)
  130. go 21
  131. replace next 1 HG╓╪┴┐ with h1-i1,HG╜≡╢ε with h2-i2,DG╓╪┴┐ with h3-i3,DG╜≡╢ε with h4-i4,╞ß┴╧ with h5-i5,╕¿┴╧ with h6-i6,═Γ╣║╝■ with h7-i7
  132. replace next 1 ╝╙╣ñ╖╤ with h8-i8,┤≥░ⁿ╖╤ with h9-i9,▓─┴╧▓ε╥∞ with h10-i10,╚╝┴╧ with h11-i11,╢»┴ª with h12-i12,╣ñ╫╩ with h13-i13,╕ú└√╖╤ with h14-i14,│╡╝Σ╛¡╖╤ with h15-i15,╖╧╞╖ with h16-i16,╣▄└φ╖╤ with h17-i17,╖╤╙├▓ε╥∞ with h18-i18,║╧╝╞ with h19-i19
  133. sum all HG╓╪┴┐,HG╜≡╢ε,DG╓╪┴┐,DG╜≡╢ε,╞ß┴╧,╕¿┴╧,═Γ╣║╝■,╝╙╣ñ╖╤,┤≥░ⁿ╖╤,▓─┴╧▓ε╥∞,╚╝┴╧,╢»┴ª,╣ñ╫╩,╕ú└√╖╤,│╡╝Σ╛¡╖╤,╖╧╞╖,╣▄└φ╖╤,╖╤╙├▓ε╥∞,║╧╝╞ to h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13,h14,h15,h16,h17,h18,h19 for ▒α║┼>11.and.▒α║┼<20
  134. select 2
  135. n=0
  136. do while n<4
  137. n=n+1
  138. select 1
  139. do case
  140.    case n=1
  141.     go 3
  142.    case n=2
  143.     go 9
  144.    case n=3
  145.     go 10
  146.    case n=4
  147.     go 4
  148. endcase
  149. select 2
  150. do case
  151.    case n=1
  152.     go 2
  153.    case n=2
  154.     go 122-qbl1
  155.    case n=3
  156.     go 121-qbl1
  157.    case n=4
  158.     go 128-qbl1
  159. endcase
  160. replace next 1 HG╜≡╢ε with z1->HG╜≡╢ε,DG╜≡╢ε with z1->DG╜≡╢ε,╞ß┴╧ with z1->╞ß┴╧,╕¿┴╧ with z1->╕¿┴╧,═Γ╣║╝■ with z1->═Γ╣║╝■,╝╙╣ñ╖╤ with z1->╝╙╣ñ╖╤,┤≥░ⁿ╖╤ with z1->┤≥░ⁿ╖╤,▓─┴╧▓ε╥∞ with z1->▓─┴╧▓ε╥∞
  161. replace next 1 ╚╝┴╧ with z1->╚╝┴╧,╢»┴ª with z1->╢»┴ª,╣ñ╫╩ with z1->╣ñ╫╩,╕ú└√╖╤ with z1->╕ú└√╖╤,│╡╝Σ╛¡╖╤ with z1->│╡╝Σ╛¡╖╤,╖╧╞╖ with z1->╖╧╞╖,╣▄└φ╖╤ with z1->╣▄└φ╖╤,╖╤╙├▓ε╥∞ with z1->╖╤╙├▓ε╥∞,║╧╝╞ with z1->║╧╝╞
  162. enddo
  163. go 124-qbl1
  164. replace next 1 HG╜≡╢ε with h2,DG╜≡╢ε with h4,╞ß┴╧ with h5,╕¿┴╧ with h6,═Γ╣║╝■ with h7
  165. replace next 1 ╝╙╣ñ╖╤ with h8,┤≥░ⁿ╖╤ with h9,▓─┴╧▓ε╥∞ with h10,╚╝┴╧ with h11,╢»┴ª with h12,╣ñ╫╩ with h13,╕ú└√╖╤ with h14,│╡╝Σ╛¡╖╤ with h15,╖╧╞╖ with h16,╣▄└φ╖╤ with h17,╖╤╙├▓ε╥∞ with h18,║╧╝╞ with h19
  166. use
  167. select 1
  168. use
  169. select 3
  170. go 2
  171. replace next 1 ╣ñ╩▒ with c11
  172. use
  173. release all
  174. return
  175.  
  176.