- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am problem about the screen input in the program compiled with IFC: the program doesnt see the difference between upper and lower case letters in the screen input.
Is there an option to set in the compiler?
My IFC version is the 7.1 with redhat 9.0 ona PIII machine.
Thanks,
Martino
I am problem about the screen input in the program compiled with IFC: the program doesnt see the difference between upper and lower case letters in the screen input.
Is there an option to set in the compiler?
My IFC version is the 7.1 with redhat 9.0 ona PIII machine.
Thanks,
Martino
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the "screen input program"? I don't recognize this. Can you attach a small program that shows the problem?
In Fortran source, case of identifiers is ignored. But character variables will compare case differently.
Steve
In Fortran source, case of identifiers is ignored. But character variables will compare case differently.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will try to be more clear.
In my fortran program I can choose some option writing on the screen some letters as t or T.
In the program I have something like:
READ (5, '(A1)') NUC
IF (NUC.EQ.'T') THEN
.
.
.
Now If I compile the program in the IBM machines with xfc the executable see the difference from t to T. When I compile with ifc it take the T value for t and T.
Do you see the point now.
Thank you in advance,
Martino
In my fortran program I can choose some option writing on the screen some letters as t or T.
In the program I have something like:
READ (5, '(A1)') NUC
IF (NUC.EQ.'T') THEN
.
.
.
Now If I compile the program in the IBM machines with xfc the executable see the difference from t to T. When I compile with ifc it take the T value for t and T.
Do you see the point now.
Thank you in advance,
Martino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see the point, but I think you either misunderstand the behavior or there is something important in the code that you have not shown us or the code you showed is not actually what is in your program.
How do you test for 't' in your code? You didn't show that. What is the declaration of NUC?
Steve
How do you test for 't' in your code? You didn't show that. What is the declaration of NUC?
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page