Well, its all done now!.. Fortran and C conversion.. Took a bit longer to convert than I thought. Arrays start at 1 in Fortran and at 0 in C, that kept me going for a while..
And the result from the program seems to be the same both in Fortran and C, so either both have the same error or both...
That helped allot!, thanks!. What a weird programming language.
No, no disk. Didn't ask for the source code either, spoiling all the fun?!
Rubber band?.. Never thrust a computer with rubber bands in it. :)
Oups.. I realize that now. But the Fortran code is on paper in a book!, after emailing the author I now know the continue has no meaning.
However, I downloaded a free fortran77 compiler and I'm going to write it down. Like an reference to the conversion.
And immediatly I stumble on another...
I'm about to convert a Fortran77 program to C and have encounter a code snippet something like this:
DIMENSION TMP(5)
DO 10 K=1, 5
10 TMP(K)=0
CALL FUNC
20 CONTINUE
STOP
END
SUBROUTINE FUNC
WRITE (*,*)'Just a test'
RETURN
END
Whats the deal with that continue?.. There is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.