soccer jersey forums.silverfrost.com :: View topic - When I run my program a box flickers up and disappears
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

When I run my program a box flickers up and disappears

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> KBase
View previous topic :: View next topic  
Author Message
silverfrost
Site Admin


Joined: 29 Nov 2006
Posts: 191
Location: Manchester

PostPosted: Thu Nov 11, 2004 1:16 pm    Post subject: When I run my program a box flickers up and disappears Reply with quote

If you create a program that writes to the screen with standard Fortran I/O then the text will go to a console window. If the program then exits the console window also closes and your results disappear.

Solution
There are a few solutions to this, the most simple is to add a PAUSE statement to the end of your program. Alternatively you can open a console window yourself and run the program explicitly. The output will then write into your open console. You use the 'cd' command to move to the directory your program is in and the program name itself to run it. For example if your program is called simul.exe and in the 'c:\my progssim' directory you would type:

Code:

c:
cd "my progssim"


to move the console to the directory and:

Code:

simul


to run the program. You can debug the program, providing you have compiled the program with a debug option by typing

Code:

sdbg simul


------------
Administrator
Silverfrost Forums
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> KBase All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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