![forums.silverfrost.com Forum Index](templates/subSilver/images/logo_phpBB.gif) |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
AjithSivakumar
Joined: 04 Jan 2008 Posts: 14
|
Posted: Wed Feb 06, 2008 7:02 pm Post subject: Error: not enough variables in Data statement |
|
|
Hi,
I have got a few questions. I am pointing it one by one..
1. When i am trying to define an integer like this
INTEGER JJ(4)/2,3,4,1/,KK(4)/3,4,1,2/
its saying "Not enough variables in DATA statement. Compilation
abandoned".
2. My code is in fixed format. I have set the compiler options in plato like
this to accept fixed format.
Tools-->Command Line Options
and there i have typed "/FIXED_FORMAT". when i tried to compile a
code its saying...
warning 61 - Line has been truncated (line is longer than 72 characters)
3. Can u please suggest whether this statement will work.
REAL* 4 ANS;
ANS .EQ. 'val'
Can u please help me with these issues.
Thanks,
Ajith. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7995 Location: Salford, UK
|
Posted: Wed Feb 06, 2008 8:06 pm Post subject: |
|
|
1. You can write this as:
Code: | INTEGER JJ(4)/2,3,4,1/
INTEGER KK(4)/3,4,1,2/
|
although this is not standard Fortran.
2. In fixed format, statements appear in "columns" 7 to 72.
3. An "=" sign is used for assignment:
ANS = 42.0
Basically you need to get a book on standard Fortran.
This forum does not aim to teach the basics of the language.
Alternatively Plato provides access to tutorial help files that may be of assistance. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|