By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,421 Members | 1,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,421 IT Pros & Developers. It's quick & easy.

still problems

P: 33
i hv done all u said i should do.i downloaded the Dev C++.i ran the program with the compiler, it ran, but it terminates within a few seconds on its own.no results is displayed. pls, below is the program again. help me check what is the problem


Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. int main()
  6. {
  7.  
  8.     // Code here...several printf statements, calculations, etc.
  9.     return 0;
  10. }
Feb 19 '07 #1
Share this Question
Share on Google+
2 Replies


DeMan
100+
P: 1,806
What do you mean by no results displayed?

Does the program ask all the right questions?
IF so, I suspect the results might be displayed, but too quickly for you to see them, you may need to add a pause to the bottom of your code to keep the terminal window open so you can see your results (or try to save them to a file)
Feb 20 '07 #2

Ganon11
Expert 2.5K+
P: 3,652
As DeMan suggested, insert the line

Expand|Select|Wrap|Line Numbers
  1. system("PAUSE");
before the return 0 in the program.
Feb 20 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.