C Program of Library Management System

This is a C program of Library Management System by which a librarian can operate a simple library. User can add multiple students, update their records and issue multiple books. This C Program shows different information about library including numbers of books and...

C Program to create Turbo C compiler UI

This is a small C program that demonstrates Turbo C Compiler User Interface. This is done by using graphics library in C. This C program uses line()  function to draw the lines and setcolor()  function to change the colors of different items. The function ...

Profit/Loss Calculator

This is a small utility written in C Programming Language to calculate the net income by checking a person’s salary and monthly expenses. On the basis of this information it calculates the loss or profit. It has a nice graphical User Interface with different formats to show the information i.e. Pie Chart: Shows the information in Pie chart with different colors for salary, expenses and net income. Tabular: Show all the information in tabular form. Bar Graph: Shows the information in Bar Graph with different colors for salary, expenses and net income.

Scientific Calculator Program

This graphical scientific calculator purely written in C programming language. It uses small functions to draw buttons on the screen and perform scientific operations like conversion, logarithm, and other operations. Every operation can be performed using the mouse buttons as well as keyboard. It can perform almost all the functions shown on the screen except few functions which will be implemented in the next version of this calculator code.

Photo

A small java program to show photo on JPanel. User can select any image file from the hard drive and show on the frame. Image file can be jpg, gif, bmp or any other supported graphics file. [code=’c’]...

Graphics in C Language

In a C program, first step is to initialize the graphics drivers on the computer. This is done using the initgraph() method provided in graphics.h  library. In the next few pages we will discuss graphics.h library in more details. Important functions in graphic.h  library will be discussed in details and samples programs will be provided to show the power of C programming language especially for graphic programming developing graphical user interfaces.

Bank Management Program

This is an automated software system written in C programming language for Bank Management which can handle accounts for customers. It uses files to handle the daily transactions, account management and user management. Its not a complete accounting software just like implemented in the banks, but still it can manage the accounts of the customers using the files at back end. It has a nice graphical layout written in C Language.

LibGD – Dynamic Image Creation Library

LibGD is an open source Graphics library for the creation of images dynamically by programmers. GD is written in C, and “wrappers” are available for Perl, PHP and other languages. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly. While not restricted to use on the web, the most common applications of GD involve website development. It allows to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file.  

Drawing Pad

A simple Drawing Pad on which the user can draw some lines and shaps by using the mouse. Java /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors...

Knight’s tour Implementation without graphic in C++

This C++ program is tour of knight on 64 square of chess board.  The goal is to place a knight on an empty chess board and then move the knight to each of the remaining 63 squares while only visiting each square once.  If on visiting the last square the knight is able to hop to the square on which it first started it is known as a closed tour (and so the knight could resume the exact same sequence of moves to complete another tour) while if the knight is unable to hop to the original square, it is known as an open tour. 

Knight’s tour without Graphic

this program is tour of knight on 64 square of chess board C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for...

graphics

This is the graphics.h header file which contains all the graphics functions and their implementations. It is quite nice to have a look at header files just to know more about functions and their parameters. Also it tells about different structures, enums defined in...

Graphics

Small C Language Program to show the drawing and filling of some basic shapes like rectangle, circle etc… with colors and different shades. First of all I have created a characters aray of patterns that will fill the drawing, then initialize the graphics mode...

Graphical Scientific Calculator

This is a C implementation of basic and few advance scientific features of calculator. It shows a nice graphical UI of the calculator with 3D buttons and demonstrates click button animation functionality. The functionalities of the calculator includes: Basic Mathematics (Add, Subtract, Multiply and Divide), Advance Mathematics (Square root, Square, Cube), Logarithmic Functions (Log, Natural Log (ln), e, Exponential), Number Conversions (Binary, Decimal, Hexadecimal and Octal), Trigonometric Functions (Sine, Cosine, Tangent, Cotangent, Secant and Cosecant), Angle Measurement (Degree, Radia and Gradian), Other Functions (Memory, Pi and Inv).