Decorate output in C
When we execute a C program, the output is printed on the black screen by default. I want this output to be decorated. I want it on a well designed background. How to do it?
Replies
-
RajdeepCEI dont think so that we can change the default output screen of our compiler. May be we can just change the colour but cant replace by wallpaper or any other graphics.
-
enthudrivesI came to know that the most popular Mario game was designed using C++. Then how was it done?
-
RajdeepCEYes we can make graphics with c++ by using standard header file
.. But it is very slow when we load graphics while using common c++ programs, cause it takes more time to load graphics compare to simple I/O. And there is one more problem with that if we dont use properly than the our text output will be overwritten by the graphic you just loaded. So buddy just leave the thought of decorating output if you want to make your program effective & fast. -
enthudrivesConsider that my code is "If user enters 1. The output is ONE"
I want the user to enter the input and get the output on a screen which looks like a notebook or slate.
I cant leave this idea.
P.S:This is just an example. I know it sounds childish -
RajdeepCEHey buddy, you just said to make a output window like notepad in c++. Its a tough task. Cause I have already learnt " Computer Graphics " subject. And whenever we loads the graphics it overwrites the text already printed. And if we write text after loading the graphics, the text will be written in next frame, that means that your text will appear at below the screen. There is some other method in C++ to load text with graphics, but I dont know too much about it. I am also learning on GUI in C/C++, lets hope we both found some solution here.
-
yamrajbhallabro the ide that when u type 1 it prints out one is nt easy bt a lil bit big programm
like u hve to use
logic
like for 1=one upto ten than 11==eleven and 12=tewlev etc bt afert that twenty +1,thrity +1 and so on
i think u ll be able to think about the logic -
enthudrives@Rajdeep
I hope some day or the other, someone who knows about it will reply here. Until then, let us keep thinking. 😉
@Yamraj
What? Is it not easy? Cant get you man.. -
RajdeepCEHey yamrajbhalla, its not just about converting number in words. Its about showing the output in new graphics background instead of original default black screen.
-
itskay007not just in c++, you can give a background in c as well..
using textbackground function in conio.h
jst run a loop, give a background to every character till the end of the screen
then go back to the first position using gotoxy(); -
soniyoto change background follow these steps:-
goto file->dosshell->type color fc_>press enter->type exit;
fc change your font color into red and background into white. -
soniyoto change background follow these steps:-
goto file->dosshell->type color fc->press enter->type exit;
fc change your font color into red and background into white. -
soniyoto change background follow these steps:-
goto file->dosshell->type color fc->press enter->type exit;
fc change your font color into red and background into white. -
soniyoto change background follow these steps:-
goto file->dosshell->type color fc->press enter->type exit;
fc change your font color into red and background into white. -
soniyo
to change background follow these steps:-enthudrivesWhen we execute a C program, the output is printed on the black screen by default. I want this output to be decorated. I want it on a well designed background. How to do it?
goto file->dosshell->type color fc_>press enter->type exit;
fc change your font color into red and background into white. -
Vishal Sharmainstead of doing the things manually like soniyo said, you can let your program change the color.. using system("color hex"); where hex means a hexadecimal number..
-
rahul69
There are multiple ways to do it, you can do whichever suits your purpose:enthudrivesWhen we execute a C program, the output is printed on the black screen by default. I want this output to be decorated. I want it on a well designed background. How to do it?
- You can use Windows Programming to create a window and display the output as desired, without having to print it inside a console
- You can use some API like Opengl to give the desired color and decoration.
You are reading an archived discussion.
Related Posts
I had a 5.1 surround system..but recently a high voltage burnt my woofer PCBs. The woofer speaker is gud...i want to do somethnig...
the four channels (front left/right n rear...
From the first day of evolving roads, I think they've been placing a new layer onto an old layer of road. But again, replacing roads would be expensive, right? If...
I think all of you would know the FLAMES game played by school students and teenagers.
Using this game, they predict the relationship between two persons.
F-Friends
L-Love
A-Affection
M-Marriage...
CEans,
I thought of declaring this as a CE Lab mini project to be developed by CEans who'd like to contribute to CE.
Here are the requirements of the feed...
MANCHESTER, England – Manchester United won the Premier League for the third straight season Saturday after a 0-0 tie with Arsenal.
United needed a point to clinch a record-equaling 18th...