Please help me with blinking or flashing command

This is a discussion on Please help me with blinking or flashing command within the C++ Programming forums, part of the General Programming Boards category; Hi I am new in this forum and also in C++. So please help me I have a question. My ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    1

    Please help me with blinking or flashing command

    Hi I am new in this forum and also in C++. So please help me I have a question.

    My teacher told me to write a program that asks a user for input and then it blinks the input text continuously. I cant think of anything. please help.

    So far I have done this much.
    Code:
    #include<iostream>
    #include<string>
    using namespace std;
    viod main()
    {
    do
       {
          cout << "\n hello mates!";
       } while (1);
    }
    Please help and yeah I have (Microsoft Visual 6 compiler)

    __________________________________________________

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I think if you habve a monochrome monitor, setting the right bit in the attributes would make it blink. However, that is not available on colour graphics cards that we use nowadays. So what you most likely have to do is to draw and erase the text repeatedly. You may want to ask your teacher to clarify if that is the expected way to solve the problem, or if you are supposed to do something else.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. problem with "touch" command in c program
    By Moony in forum C Programming
    Replies: 10
    Last Post: 08-01-2006, 09:56 AM
  3. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  4. Ping problem
    By bladerunner627 in forum C++ Programming
    Replies: 12
    Last Post: 02-02-2005, 11:54 AM
  5. exe files in -c- language
    By enjoy in forum C Programming
    Replies: 6
    Last Post: 05-18-2004, 04:36 PM

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