Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: CMD tests  (Read 1190 times)

0 Members and 1 Guest are viewing this topic.
CMD tests
« on: May 30, 2007, 10:05:30 pm »
  • Hookshot to the Future!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 517
im doing simple tut tests like
Code: [Select]
#include <stdio.h>

int main()
{
if (7>1)
{
        printf("Yes 7 is greater than 1\n");
        printf("Thanks for asking!\n");
        }
 return 0 ;
        }
but the command prompt leaves so fast is there a way to fix that :D
Logged
Check my ZRPG development blog at rev2k9blog.spaces.live.com
  • My Blog
Re: CMD tests
« Reply #1 on: May 30, 2007, 10:09:50 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
system("PAUSE");
Logged
Re: CMD tests
« Reply #2 on: May 30, 2007, 11:22:49 pm »
  • Hookshot to the Future!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 517
oh this is ansi c i forgot to add this. but ill try and see if i did it  right :D
Logged
Check my ZRPG development blog at rev2k9blog.spaces.live.com
  • My Blog
Re: CMD tests
« Reply #3 on: May 31, 2007, 12:07:53 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
you can also use cin.get()
Logged

gm112

Re: CMD tests
« Reply #4 on: May 31, 2007, 12:10:25 am »
Ah.. the old C++ 6.0. I don't use c++ though <__<.
Logged
Re: CMD tests
« Reply #5 on: June 12, 2007, 12:22:21 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 266
getchar(); works as well.
Logged
Intel P4 3.2 GHZ
2.5GB SDRAM DDR400
350GB SATA
ATI RADEON HD 2600PRO 512MB
Creative Sound Blaster Audigy2 Z
Windows XP SP2

Current Projects: None.
- Trask
Re: CMD tests
« Reply #6 on: June 12, 2007, 05:17:08 pm »
  • Hookshot to the Future!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 517
got new prob if i do alt+Del+ctrl i get taskmrg of course but theres millions of Cmds.exe and it usually crash alot.
Logged
Check my ZRPG development blog at rev2k9blog.spaces.live.com
  • My Blog

Dayjo

shut the fuck up donny.
Re: CMD tests
« Reply #7 on: June 12, 2007, 06:42:52 pm »
  • hungry..
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3602
got new prob if i do alt+Del+ctrl i get taskmrg of course but theres millions of Cmds.exe and it usually crash alot.
You're probably not closing it properly?
Logged
  • My Blog
Re: CMD tests
« Reply #8 on: June 12, 2007, 07:41:12 pm »
  • Hookshot to the Future!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 517
well this happend on its own but its stopped now :D
Logged
Check my ZRPG development blog at rev2k9blog.spaces.live.com
  • My Blog
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.564 seconds with 55 queries.