0

Iam using graphics.h header file for the first time.plz tell me how the following program is written:
write a program to print "Hello world" three times in different colors and fonts with yellow background colour using graphics.plzzz give me the answer.

5
Contributors
4
Replies
6
Views
7 Years
Discussion Span
Last Post by JSPMA1988
0

This is generally platform specific. You haven't specified what platform you are using and whether or not you intend on using existing libraries or not.

1

He's using a 20 year old compiler that has a header file called "graphics.h", the compiler he's using probably produces 16 bit executables and supports non-standard C++.

Ahh the amazing Turbo C++, it's still used in universities, typically in India. Though, this poster's profile says Pakistan.

I would recommend OP use a newer compiler, and not pay for courses that use that compiler. Wasting money, IMO.

0

The simple answer is to not use <graphics.h> since no one uses that at all. You can always change the text color using \E[. I'm not sure how you change the console background, but I would assume it's a similar command.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.