Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Generally, in all C++ programs, texts are in white colour.
Can we change the colour of the text(either input or output
or both)? If so, help me out.

Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(eit..

Answer / sidhartha

Yes, it can be possible by using graphics library function.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More OOPS Interview Questions

1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.

1 Answers   Tech Mahindra,

to find out the minimum of two integer number of two different classes using friend function

0 Answers  

#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

0 Answers  

Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,

What is super in oop?

0 Answers  

What is difference between new and malloc?

7 Answers   emc2,

How many human genes are polymorphic?

0 Answers  

Can java compiler skips any statement during compilation time?

0 Answers  

Why a "operator=(...)" when there is a copy ctor?

2 Answers  

Are polymorphisms mutations?

0 Answers  

What is a friend function & its advantage?

1 Answers   MIT,

when my application exe is running nad i don't want to create another exe what should i do

2 Answers   HCL,