Help me
Publicado por Selene (2 intervenciones) el 06/06/2012 21:40:47
Lo estoy programando en Fortran 77, pero no me corre
program back
integer i
open(unit=21, file='selene.dat', status='old')
do 8 i=1,6
read(21,'(a1)') yes
if (yes.ne.'a')goto 9
8 continue
9 backspace
close(21)
stop
end
Cuando lo corro me sale,
backspace.f:7:
if (yes.ne.'a')goto 9
1 2
Equality operator at (1) must operate on two scalar (not array) subexpressions, two function invocations returning arithmetic or character scalars, or a combination of both -- but the subexpression at (2) is an array
backspace.f:8:
8 continue
....
program back
integer i
open(unit=21, file='selene.dat', status='old')
do 8 i=1,6
read(21,'(a1)') yes
if (yes.ne.'a')goto 9
8 continue
9 backspace
close(21)
stop
end
Cuando lo corro me sale,
backspace.f:7:
if (yes.ne.'a')goto 9
1 2
Equality operator at (1) must operate on two scalar (not array) subexpressions, two function invocations returning arithmetic or character scalars, or a combination of both -- but the subexpression at (2) is an array
backspace.f:8:
8 continue
....
Valora esta pregunta


0