Search
Left Quote    You have to THINK anyway, so why not think BIG?
- Donald Trump    
Right Quote
 
[login] | [Register]
Forum Index » C and C++ » Viewing Topic and Replies
Post Reply


        Viewing Topic: executing
  This user is online  Guest
  Subject: "executing" Posted: @ 5:51 pm on Nov 20 2005   
Unregistered
just had a problem . after writing the code in C++ 6.0 when I wanna run and see it/execute it, the DOS just flashes and then disappears!! so I can not see the result!!! why is it??????
I'll be thankful if someone help me plz!

    Viewed: 14,960 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: executing" Posted: @ 2:26 am on Dec 12 2005    
Unregistered

I dont know much about C++, but I believe i do know the answer. The reason is that you placed your code in a Win32 Console Application, try putting it in a Win32 ... something application ... I forget the name, but its right above or below console application. Also, you may not be using the right code, there are many different lines of code that do many different things in C++, so maybe you should learn more about its structure / variables before you try and execute something.

Chances are 99% that you are trying to be a script kiddie.



    Viewed: 14,919 Times | Reply to This | To top
  This user is offline  rahulbatra
  Subject: "re: executing" Posted: @ 6:26 pm on Dec 23 2005    
Member #: 54
Rank: User - (20)
Since: 06/26/05
Posts: 5
From: India

Try adding a 'getch()' or a 'getchar()' function at the end of the program just before the final }. This'll make the window wait for you to enter a character while you see the output.



    Viewed: 14,881 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: executing" Posted: @ 11:41 am on Feb 01 2006    
Unregistered

Write this just before the return function:

getchar();



    Viewed: 14,816 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: executing" Posted: @ 7:37 pm on Mar 27 2006    
Unregistered

write getch() before return because after return statement no statement execute so write before return



    Viewed: 14,679 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: executing" Posted: @ 6:41 pm on Jun 28 2006    
Unregistered

  Guest said...

< i> just had a problem <img src=/forums/ima ges/smilies/con fused.gif border=0>. after writing the code in C++ 6.0 when I wanna run and see it/execute it, the DOS just flashes and then disappears!! so I can not see the result!!! why is it??????
I'll be thankful if someone help me plz!


put system("p ause"; above and before return 0;



    Viewed: 14,418 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: executing" Posted: @ 6:42 pm on Jun 28 2006    
Unregistered

you need to add system("p ause"; above and before return 0;



    Viewed: 14,416 Times | Reply to This | To top
  This user is offline  twinklebhumra
  Subject: "re: executing" Posted: @ 1:02 pm on Jul 23 2008    
Member #: 723
Rank: User - (1)
Since: 07/23/08
Posts: 1
From: punjab

o buddy
just add getch()
at the end of programm just above the
closing brace like

getch()
}




    Viewed: 10,525 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank