CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@enthudrives • 16 May, 2009
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?
@RajdeepCE • 16 May, 2009 I 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.
@enthudrives • 16 May, 2009 I came to know that the most popular Mario game was designed using C++. Then how was it done?
@RajdeepCE • 17 May, 2009 Yes we can make graphics with c++ by using standard header file <graphics.h>.. 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 <graphics.h> 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.
@enthudrives • 17 May, 2009 Consider 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
@RajdeepCE • 17 May, 2009 Hey 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.
@yamrajbhalla • 17 May, 2009 bro 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 • 17 May, 2009 @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..
@RajdeepCE • 17 May, 2009 Hey yamrajbhalla, its not just about converting number in words. Its about showing the output in new graphics background instead of original default black screen.
@itskay007 • 19 May, 2009 not 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();
@soniyo • 02 Mar, 2013 to 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 • 02 Mar, 2013 to 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 • 02 Mar, 2013 to 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 • 02 Mar, 2013 to 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 • 02 Mar, 2013
enthudrives
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?
to 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.
@Vishal Sharma • 03 Mar, 2013 instead 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 • 11 Mar, 2013
enthudrives
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?
There are multiple ways to do it, you can do whichever suits your purpose:
  1. You can use Windows Programming to create a window and display the output as desired, without having to print it inside a console
  2. You can use some API like Opengl to give the desired color and decoration.
Hope it helps!😀
4k views

Related Posts

@maria flor · Apr 27, 2011

CEans, Do you believe that "pen is mightier than the sword"? why or why not???
6.3k views

@Ankita Katdare · Aug 22, 2014

When it comes to an ultra low cost phones, the market in India is hugely dominated by the Google's Android OS smartphones. Giving a stiff competition to that, here comes...
3.6k views

@sharunya · Dec 15, 2015

hi.. im electronic communication student... I need help for my final year project.. the theme that given to us was green technology.. im really out of ideas about it.. please...
5.9k views

@nINAD pARDHIYE · Jul 16, 2015

CDAC centres allotted to all who applied can be discussed in this thread so students who will attempt CDAC in the near future can get a good idea. Please post...
3.7k views

@Kaustubh Katdare · Jan 7, 2013

Several CDAC applicants have been enquire about the CDAC Bangalore Placements. Those who are familiar with the matter can post their own review and feedback about how's the whole placements...
28.5k views