How To Change Text Color In Dev C%2b%2b

How To Change Text Color In Dev C%2b%2b Average ratng: 4,4/5 879 votes

In this video, you will learn how to turn on Dark mode in Dev C & How to change the theme in cLike, Share, Comment &, Subscribe Tech dot/tekdot is a plat. Good Evening; I am working first time on word documents in c. I just generated a word file in which i just simply add two numbers. Now i just want to change the font size, style and font color of a particular word 'Sum' in whole document.

I want to change the color of the text in c++.
I am using Turbo c++ 4.5 and Windows XP.
I have used that textcolor(14) type code but it didn't work.
It says : Call to undefined function 'textcolor' in function main
I have included header files iostream.h, conio.h, windows.h, dos.h.

Please suggest me the code which i can use to change the text color.

  • 5 Contributors
  • forum12 Replies
  • 3,615 Views
  • 3 Years Discussion Span
  • commentLatest PostLatest Postby renel.c.allauigan

Recommended Answers

Use the textcolor function (it's not standard compliant) from conio.h library:

try using google next time!!

Jump to Post

How To Change Text Color In Dev C 2b 2b Download

Post your code Best free serial key sites.

Jump to Post

Bluetooth dongle free download. You can change the value of 5 to anything that you like. I don't know the particular …

Jump to Post

How To Change Text Color In Dev C 2b 2b Free

All 12 Replies

I want to change the color of the text in c++.
I am using Turbo c++ 4.5 and Windows XP.
I have used that textcolor(14) type code but it didn't work.
It says : Call to undefined function 'textcolor' in function main
I have included header files iostream.h, conio.h, windows.h, dos.h.

Please suggest me the code which i can use to change the text color.

How To Change Text Color In Dev C 2b 2b Code

hei brother itz really easy All u have To do is type
#include<windows.h>
& after that type

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 14);
change d final number
ex 12 = red ;
15=white
14=yellow
It is working on Visual C++ i hope it will aLSO work in turbo c++ also Wat is your country . Where r u from by the way tell me whether it is working or not..