Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: a cute prog...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 11 Topic 8150 of 8908
Post > Topic >>

Re: a cute program

by "Gerry Ford" <gerry@[EMAIL PROTECTED] > Apr 21, 2008 at 12:59 AM

"Richard Maine" <nospam@[EMAIL PROTECTED]
> wrote in message 
news:1ifouc2.3t5l4klmm8qkN%nospam@[EMAIL PROTECTED]
> Gerry Ford <gerry@[EMAIL PROTECTED]
> wrote:
>
>> <robert.corbett@[EMAIL PROTECTED]
> wrote in message
>>
news:df35062a-3d4b-4a85-ad4a-ac00159e92d0@[EMAIL PROTECTED]
>
>> >> >         PRINT *, 10
>
>> I don't know how 10 isn't a lun like any other.
>
> As in my reply to bru, see any Fortran text for the syntax of the PRINT
> statement. Usenet is not a substitute for a Fortran text. While we can
> help explain confusions, usenet alone is not actually a good way to
> learn the language from scratch. It does actually require at least some
> resource elsewhere also. The PRINT statement doesn't have a lun in it
> anywhere.

I'm surprised to hear that.  I thought that luns is what you were dealing 
with stdin and stdout as 5 and 6.  That this snippet doesn't work
evidences 
that I'm clearly in error here.

    SUBROUTINE SQRT
        PRINT 6, 10
      END

      PROGRAM MAIN
        CALL SQRT
      END

The print statement isn't, however, why this prog behaves differently than

you expect.  It's that you'd've thought that sqrt would be unavailable as
a 
subroutine name.

Luns would print as integers like any others. Why wouldn't ten be a lun?
print *, "la bella luna is full"
print *, "el chat lunatique"
-- 
"A belief in a supernatural source of evil is not necessary; men alone
are quite capable of every wickedness."

~~  Joseph Conrad (1857-1924), novelist
 




 11 Posts in Topic:
a cute program
robert.corbett@[EMAIL PRO  2008-04-17 22:45:39 
Re: a cute program
bru <bru@[EMAIL PROTEC  2008-04-18 09:33:12 
Re: a cute program
nospam@[EMAIL PROTECTED]   2008-04-18 00:44:53 
Re: a cute program
glen herrmannsfeldt <g  2008-04-18 15:41:40 
Re: a cute program
nospam@[EMAIL PROTECTED]   2008-04-18 20:18:28 
Re: a cute program
robert.corbett@[EMAIL PRO  2008-04-18 18:31:18 
Re: a cute program
"Gerry Ford" &l  2008-04-20 02:05:13 
Re: a cute program
glen herrmannsfeldt <g  2008-04-20 01:25:52 
Re: a cute program
nospam@[EMAIL PROTECTED]   2008-04-20 09:05:53 
Re: a cute program
"Gerry Ford" &l  2008-04-21 00:59:04 
Re: a cute program
glen herrmannsfeldt <g  2008-04-21 00:44:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 8:23:29 CST 2008.