Thread: Blink Blink Blink...

  1. #1
    Registered User
    Join Date
    Jan 2003

    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
    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.

    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
    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...
    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


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


  5. #5
    Registered User
    Join Date
    Dec 2002
    And if you're already using the iostream library for I/O,

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