Sunday, September 13, 2015

Typing practice with bubble game

Many of us played this game in typing tutor. Bubbles are falling from the top containing a  character in it. We need to type that character to make that bubble disappear.
Same is here but there is no termination condition or scoring.
To terminate the code press ESC key.


MS Paint like program in C

MS Paint Editor in C. It is having four function Circle, Rectangle, Line and Pen. Using this four function you can design whatever you want. And later you can save it by taking screenshot of it.


Graphic program to design a moving car

Car looks like :

Happy Birthday sound in C

Graphic program to design calculator

In this program I used C graphics.
Not a big task, Only we need to know how to initialize Graphics then we can use inbuilt functions to design anything.
initgraph() is the function used to initialize graphics available in graphics.h library. It takes three parameter first one is reference to graphic driver, second one is reference to graphic mode and the last one is BGI library path.
Other functions I used are rectangle() to draw input box and buttons, line() for design, setcolor() to give color to shapes and outtextxy() to display text at specific x and y coordinates.

It looks like this :

Program to make arithmetic operations on complex numbers

Powered by Blogger.