I want my C++ program become interesting
How can I change the color of background and color of font even size of font.........
I will always use
system("cls")
to clear there screen.....
so I want do C++ DOS into something we call presentation like powerpoint
Haha........
Any tutorial?
That all
Thank you
There is no generic C++ code for changing background colours as consoles are platform-specific. In Windows, for instance, you would use the SetConsoleTextAttribute function. The following code demonstrates how it works: #include<iostream> #include<Windows.h> int main() { for(int colour=0x00; colour<=0xff; ++colour) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),colour); std::cout<<"Using colour:"<<colour<<std::endl; } return(0); } Note that the least-significant nybble (4-bits or a half byte) changes the foreground colour, while the most-significant nybble changes the background colour.
turbo c
Yes.
TLINK is the Turbo C++ linker utility. You use it to link the object files created by the Turbo C++ compiler.
Turbo C++ keywords are the same as C++ keywords. The language remains the same, only the implementations differ. The Turbo C++ implementations were standards-compliant at the time of their release, but the product is no longer supported.
It has to be some color and blue is nice.
yellow
try it!!
Lavender
Switzerland's flag it's colour was red background and white plus and it was the first socity who made red colour .
orange - yellow = red red + blue = purple
How the turbo c plus plus use what in the computer.
A weird shade of black is produced:
There is no generic C++ code for changing background colours as consoles are platform-specific. In Windows, for instance, you would use the SetConsoleTextAttribute function. The following code demonstrates how it works: #include<iostream> #include<Windows.h> int main() { for(int colour=0x00; colour<=0xff; ++colour) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),colour); std::cout<<"Using colour:"<<colour<<std::endl; } return(0); } Note that the least-significant nybble (4-bits or a half byte) changes the foreground colour, while the most-significant nybble changes the background colour.
Turbo C compiles c source. turbo c++ compiles c++ source code.
The company Borland developed Turbo C++.
Blue and Yellow are both primary colours. When you mix equal parts yellow and blue you get the secondary colour Green. When mixing green you can vary the colour by varying the amount of blue for a darker green and yellow for a brighter green.