AoA............Kindly guide me how to increase font size of "cout statement" in c++,& also colour of "cout statement"................
You Can Change it through the C++ Compiler Window. When You Will right click on the window then many options will popup in which you can find out the display or setting
no i don`t want to increase the size of whole program, my requirement is to increase only 1st line of program.....................
Send Me Your Program I will Increase the Size of Your Program. Thanks.
#include #include using namespace std;int main(){ int x=1; if (x==1) { CONSOLE_FONT_INFOEX a; a.cbSize = sizeof(a); a.dwFontSize.X = 24; // Width of each character in the font a.dwFontSize.Y = 34; // Height std::wcscpy(a.FaceName, L"Consolas"); // Choose your font SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, & a); std::cout << "\tWelcome to AUTO TELLER MACHINE"; } cout<<"yes"; return 0;}
its really working..................Thanks brooo..................!
AoA............
ReplyDeleteKindly guide me how to increase font size of "cout statement" in c++,
& also colour of "cout statement"................
You Can Change it through the C++ Compiler Window. When You Will right click on the window then many options will popup in which you can find out the display or setting
Deleteno i don`t want to increase the size of whole program, my requirement is to increase only 1st line of program.....................
DeleteSend Me Your Program I will Increase the Size of Your Program. Thanks.
Delete#include
Delete#include
using namespace std;
int main()
{
int x=1;
if (x==1)
{
CONSOLE_FONT_INFOEX a;
a.cbSize = sizeof(a);
a.dwFontSize.X = 24; // Width of each character in the font
a.dwFontSize.Y = 34; // Height
std::wcscpy(a.FaceName, L"Consolas");
// Choose your font
SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, & a);
std::cout << "\tWelcome to AUTO TELLER MACHINE";
}
cout<<"yes";
return 0;
}
its really working..................
DeleteThanks brooo..................!