Blink Blink Blink...

This is a discussion on Blink Blink Blink... within the C++ Programming forums, part of the General Programming Boards category; Hey peoples i just want to know on where i can get a better compiler but used for newbies too. ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    25

    Blink Blink Blink...

    Hey peoples i just want to know on where i can get a better compiler but used for newbies too. im using the dev-c++ but everytime i create a new project in DOS and put all the codes and stuff in there and compile then run i press ENTER the DOS "blink" and closes. am i doing it right??? someone please help or do it need a better compiler ?
    im still a noob...

    ....but im trying my best to help people out

    ...doing that will help me understand more and more about c++


  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Include conio.h and place getch(); at the end of the main function. If you don't have conio, place fgets(); or some other input function instead.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Vis your question, Magos has supplied you with a solution, read the FAQ for others, hint, your program is running so fast, it is exiting before you have had a chance to read it.

    Vis your sig, vBulletin does not hold some global database of contributors. If you have been banned at other sites, you probably broke their rules. Break ours, and you may be banned, don't break them, you won't - it's that easy.

    The rules...

    http://cboard.cprogramming.com/annou...p?s=&forumid=3
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807

    Hmm..

    Add this header-file on your program:
    Code:
    #include <stdlib.h>
    And at the end of the main function, of course, before 'return', add this line:

    Code:
    system("pause");

  5. #5
    Registered User
    Join Date
    Dec 2002
    Posts
    119
    And if you're already using the iostream library for I/O,
    Code:
    cin.get();

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how so i blink my text?
    By clique in forum C++ Programming
    Replies: 6
    Last Post: 01-12-2009, 08:31 PM
  2. resizing makes child windows blink
    By robig2 in forum Windows Programming
    Replies: 15
    Last Post: 01-14-2008, 03:24 AM
  3. How to blink text?
    By Doink in forum C Programming
    Replies: 5
    Last Post: 11-21-2007, 04:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21