CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

What means % in Fortran?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2004, 00:27
Default What means % in Fortran?
  #1
What means % in Fortran
Guest
 
Posts: n/a
Hi, friends:

Can you tell me what means A%B in Fortran? Where both A and B are arrays, and can be of different dimensions.

Thank you,

Wen
  Reply With Quote

Old   April 20, 2004, 04:25
Default Re: What means % in Fortran?
  #2
J
Guest
 
Posts: n/a
It's a derived type.

================================================

For example you make a type called circle which one can store its color and radius:

type circle real::radius char(len=10)::color end type circle

Now in the program to store the circle's radius you type

circle%radius=15.0

  Reply With Quote

Old   April 20, 2004, 15:34
Default Re: What means % in Fortran?
  #3
Wen Long
Guest
 
Posts: n/a
cool, it's like C++ and Java thanks,
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortran Compiler-CFX12.1 Araz CFX 13 March 27, 2017 06:37
Intrinsic Procedure 'ISNAN' in GNU FORTRAN 77 hawk Main CFD Forum 1 April 12, 2005 23:13
visual fortran Monica Main CFD Forum 1 August 28, 2004 21:45
Fortran77 or Fortran 90 Swapnil CFX 2 November 26, 2002 16:16
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 10:34


All times are GMT -4. The time now is 10:23.