l***s 发帖数: 11 | 1
is this not enough to tell you why?
use mkstemp instead of tempname, |
h***o 发帖数: 539 | 2
Unix server?
linux server?
seg fault generally is due to mistaken usage of pointers |
S***y 发帖数: 186 | 3
In Fortran, it's normally due to an access to an array element beyond
the bounds, i.e. misuse of the pointers.
【在 h***o 的大作中提到】 : : Unix server? : linux server? : seg fault generally is due to mistaken usage of pointers
|
s*r 发帖数: 2757 | 4 f77有指针了?
【在 S***y 的大作中提到】 : : In Fortran, it's normally due to an access to an array element beyond : the bounds, i.e. misuse of the pointers.
|
h***o 发帖数: 539 | 5 不一定要叫指针才是指针吧
【在 s*r 的大作中提到】 : f77有指针了?
|
s*r 发帖数: 2757 | 6 可是f95有了叫指针的指针类似物
f77里不叫指针的指针怎么指到外面去?
【在 h***o 的大作中提到】 : 不一定要叫指针才是指针吧
|
t*****o 发帖数: 74 | 7 不严格的讲, 数组的下标就可以叫指针
你定义了一个A[20]
调用的时候用到了A[I], I不小心设成了30, 不就指到外面出了吗?
【在 s*r 的大作中提到】 : 可是f95有了叫指针的指针类似物 : f77里不叫指针的指针怎么指到外面去?
|
s*r 发帖数: 2757 | 8 i guess that reference won't return anything except error in fortran
【在 t*****o 的大作中提到】 : 不严格的讲, 数组的下标就可以叫指针 : 你定义了一个A[20] : 调用的时候用到了A[I], I不小心设成了30, 不就指到外面出了吗?
|
r****y 发帖数: 1437 | 9 Recently have to use a Fortran code written by another folk. He
used command-line-arguments a lot. Like this
character*80 cint
...
getarg(1, cint)
read(cint, *) number
...
Are these "getarg" and "read(cint, *)" standard fortran syntax, or
just dialect used by some compilers?
|
f****r 发帖数: 27 | 10 getarg is compiler extension
【在 r****y 的大作中提到】 : Recently have to use a Fortran code written by another folk. He : used command-line-arguments a lot. Like this : character*80 cint : ... : getarg(1, cint) : read(cint, *) number : ... : Are these "getarg" and "read(cint, *)" standard fortran syntax, or : just dialect used by some compilers? :
|