📄 readme
字号:
This directory demonstrates that you can link
f77 programs into Java through C. Here
Java calls the C function in myAverage.c which calls
the subroutine avef77() in ave.f
On HP-UX:
(1) compile C file with:
cc -Ae +z -c -I/opt/java/include -I/opt/java/include/hp-ux myAverage.c
producing myAverage.o
(2) compile f77 file with:
f77 +z -c ave.f
producing ave.o
(3) Now build shared lib with
ld -b ave.o myAverage.o -o libave.sl
(4) javac Average.java
(5) java Average
You'll get the result
In C code
i is 11 and j is 20
Average is 15.500000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -