If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > How to execute a C program?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-22-06, 17:02
NonLinear NonLinear is offline
Registered User
 
Join Date: Feb 2004
Posts: 97
How to execute a C program?

Ok the problem is not so easy as the title say. I deside to learn C and I installed the IDE Borland C++ 5.02 compiler ( I have it from an old seminar). The problem is that when I click the run button from the toolbar everything is ok, the program is compiled,linked and executed to a command window (DOS) but it not remain long and disappeared.The dos window does not stay very long. What can I do. It is impossible to find if the results are correct because the dos window doesn't stay very long.
Thanks
Reply With Quote
  #2 (permalink)  
Old 04-17-07, 01:30
shashi_s shashi_s is offline
Registered User
 
Join Date: Apr 2007
Posts: 21
write
getch();
at the last line of the code in the main()

will wait until u press something for it to dissapear
Reply With Quote
  #3 (permalink)  
Old 12-10-07, 14:17
DB Dreamer DB Dreamer is offline
Registered User
 
Join Date: Dec 2007
Posts: 7
as a beginner i recommended Microsoft visual c ++ 6 for you to work with
It's easier than Borland

and there is less errors
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On