1,105,320 Community Members

Help c++ codes please

Member Avatar
hutzy
Newbie Poster
2 posts since Jul 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

Ok straight to the point i have to do a code.
The text or the word must have color and it is blinking but the
text color should be automatic changing while it is blinking...
I know how to put color amd make the text blinking but i don't know
how color is automatic changing while it is blinking i have been searching
it could you please give example or teach me... Thanks in advance.!!
Im using turbo c++ 3.0

Member Avatar
jogieglenmait
Light Poster
32 posts since Sep 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 
#include<windows.h>//library

system("color 02");//color
Sleep(1000);       //animation

note: hope this helps. it works with codeblocks. since it uses a windows.h library im sure it will work with turbo.

Member Avatar
Ancient Dragon
Achieved Level 70
27,573 posts since Aug 2005
Reputation Points: 5,231 [?]
Q&As Helped to Solve: 3,028 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
0
 

windows.h will not work with turbo c++ because its too old of a compiler. There are other threads here about the same topic, suggest OP read them.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: