Hi friends Everyone ,Who is doing their graduation in Computer Science is familiar with C Programming Language.But most of you might thinking getting a doubt that Can we Work with Graphics in C as in Java Or Other Prog.Languages.?
The Answer is YES,We can it may not possible as in java,But Still its Possible.
REQUIREMENTS of the System to run a C graphics Program:
>Turbo c Compiler,and it should be supported in full screen Mode.
>Full Screen mode is nothing but it should be opened in Max.Screen Mode(Most of Windows XP or Lesser Versions Do support This Full Screen Mode).
if have any problem With full Screen mode (Windows 7 doesn't Support Full Screen mode),Then You need to Download "DOSBOX" Software from the following link..http://dosbox.en.softonic.com/download.
>Just Install the DOSBOX as you install other Softwares.
>Now Create a folder in the same drive where u have installed C.Mine was "c:/Dos" .
And Now it got installed.Any Problem u r getting Just mail me @ pbhushan.143@gmail.com
..........................................................................................................
After the completion of above process you are rready to Play with Graphics in C...
In the above Pic You can see some smileys that are printed on the C output.
In the above code Character code of 'i' is printed..That is the Smiley.
The Answer is YES,We can it may not possible as in java,But Still its Possible.
REQUIREMENTS of the System to run a C graphics Program:
>Turbo c Compiler,and it should be supported in full screen Mode.
>Full Screen mode is nothing but it should be opened in Max.Screen Mode(Most of Windows XP or Lesser Versions Do support This Full Screen Mode).
if have any problem With full Screen mode (Windows 7 doesn't Support Full Screen mode),Then You need to Download "DOSBOX" Software from the following link..http://dosbox.en.softonic.com/download.
>Just Install the DOSBOX as you install other Softwares.
>Now Create a folder in the same drive where u have installed C.Mine was "c:/Dos" .
And Now it got installed.Any Problem u r getting Just mail me @ pbhushan.143@gmail.com
..........................................................................................................
After the completion of above process you are rready to Play with Graphics in C...
In the above Pic You can see some smileys that are printed on the C output.
#include <stdio.h>
#include <conio.h>
int main()
{
int x,y;
int i=1;
for (x=1;x<25;x++)
printf(" %c ", i); //prints a smiley
printf("\n"); //goes on next line
getch();
}
This is the Code used to print those smileys on C Output Screen.
...
You can fill the Whole Screen by putting a for loop to the Smiley code..
i.e.
#include <stdio.h>
#include <conio.h>
int main()
{
int x,y;
int i=1;
for(y=1;y<=20;y++)
{
for (x=1;x<25;x++)
printf(" %c ", i); //prints a smiley
printf("\n"); //goes on next line
}
getch();
}
Reason:In the above code Character code of 'i' is printed..That is the Smiley.