📄 lines.f
字号:
$alias fdopen='fdopen'(%val,%ref) include 'phigs.f1.h' ! get the HP-PHIGS aliases program Lines ! program "Lines.f" include 'phigs.f2.h' ! get the HP-PHIGS constants integer*4 WorkstnID ! workstation identifier parameter (WorkstnID=1) ! value chosen by the user integer*4 ConnID ! connection identifier integer*4 WorkstnType ! workstation type parameter (WorkstnType=POIDDX) ! out/in, direct, dbl bfr, X integer*4 TheCurve ! display list structure root parameter (TheCurve=1) ! value chosen by the user real X(100), Y(100) ! points for polyline integer*4 I ! loop control variable integer*4 fdopen ! to get file descriptor call popph(fdopen(fnum(7), 'w'//char(0)), 0) ! open phigs call pue004('/dev/screen/phigs_window', ConnID) ! get connection ID call popwk(WorkstnID, ConnID, WorkstnType)! open workstation call popst(TheCurve) ! open display list structure open(unit=9, file='data') ! open the data file do I=1, 100 ! for each point... read(9, *, end=20) X(I), Y(I) ! read the X, Y values end do 20 close(9) ! close the data file call ppl(100, X, Y) ! polyline with 2 points call pclst ! close display list structure call ppost(WorkstnID, TheCurve, 1.) ! mark structure for display call puwk(WorkstnID, PPERFO) ! update the workstation call pclwk(WorkstnID) ! close workstation call pclph ! close phigs stop ! stop processing end ! end of program
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -