Snake Game – C Imlementation

This C program simulates the game “snake” which is usually available in old mobile phones. A string of characters moves on the screen according to arrow keys pressed by user. If it touches itself or screen boundary, the program terminates. When the snake moves, in arbitrary screen positions some digit (1-9) appears. The objective of the game is to make the snake eat the said digit, so that it is added to the score. When a digit is eaten, the size of the snake increases by the number of characters equal to the value of the digit.

TIC TAC TOE Game

This is an advance version of Tic Tac Toe computer game written in c programming language. The game runs in graphical mode of DOS prompt and users can play the game in graphical mode. The game has many options to choose from, like playing with computer, friend. While...

Paint in Dos

Anyone and Everyone is allowed to use this code freely without any conditions. I wrote most of this code as a part of a college assignment in my Computer Graphics Lab when I was in the 6th semester of Engineering. I am a student of R.V College of Engineering,...

C Program to print Fibonacci numbers

This C program prints out the first Fibonacci series of N numbers. In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci. The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, thus creating the sequence 0, 1, 1, 2, 3, 5, 8, etc. The standard form of writing Fibonacci series is:

GNU coding styles and standards

Reference standards Don’t in any circumstances refer to Unix source code for or during your work on GNU! (Or to any other proprietary programs.) If you have a vague recollection of the internals of a Unix program, this does not absolutely mean you can’t...

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.

Text editor

This program is written in pure C programming language. The interface of the C program is just like Turbo C/C++ compiler like interface, and it also provides some dialog boxes same like the Turbo C/C++ compiler. It has menus just like C/C++ compiler, text formatting options and also provides options to change font color.

C Calculator Program

This is a simple calculator written in C language and works under DOS Command prompt. The calculator performs all the basic arithmetic operations including addition, subtraction, trigonometric calculations, and many other functions. It can also calculate logarithms,...

From C to C++ – What’s new?

As we begin the study of C++ and object oriented programming, a few comments are in order to help you get started. Since the field of object oriented programming is probably new to you, you will find that there is a significant amount of new terminology for you to grasp. This is true of any new endeavor and you should be warned not to be intimidated by all of the new concepts.

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.

Statements in C#

The real nuts and bolts of a programming languages is that which controls the flow of a program called statements. Types of Statements in C# C# borrows most of its statements directly from C and C++, though there are some noteworthy additions and modifications....

Predefined Datatypes in C#

Here we will see the data types available in C#. Before examining the data types in C#, first we will try to understand the C# have two categories of data types. Value types Reference types Value type data type is that which stores the value directly in the memory....

Application Structure

Let’s begin by looking at the structure of a C# application. Every C# application contains certain elements. The application begins with the hierarchical levels, listed here in order of appearance. Namespace Class Method Every application begins with a namespace...

An Overview of C#

C# is a new programming language specifically designed for Microsoft .NET Framework. C# is significant in two respects. It is specifically designed for use with Microsoft’s .NET Framework. It is based on modern Object Oriented Design methodology. An Overview C#...

Stack Implementation in C

This is a C program that simulates stack operations graphically and in text mode. The program uses linked list to implement stack operations. Stack is a very useful data structure for real life scenarios and used in many other data structures. For example, Processors,...

Bayer-Trees implementation in C

This is implementation of Bayer-Trees, which are normally used for indices of data bases. These routines provide all stuff that is needed to create and destroy; insert, update and delete; load and destroy; search and traverse; check a tree. Sort huge amounts of data by doing a multi-phase sorting on temporary files.

Objects

Structured programming only deals with procedures (functions) and variables. The basic idea behind the Object Oriented Programming is that it deals with the objects. In real life everything is an object and every object has properties and functionality. As everything...

Classes – Object Oriented Programming

If we say that a particular programming language is Object Oriented then it means, the programming language must have the facility to define classes in it. A class is an expanded concept of a data structure i.e instead of containing data only, it can contain both data...

Personal Organizer

NeoMem allows you to store and organize all kinds of information in a cross between a word processor and database. The interface is similar to Windows Explorer, except that instead of dealing with files on a hard disk you deal with objects in a file. It can be used to store to do lists, books, website passwords, addresses, account information, and collections of all kinds. You can define your own classes for items that you want to store information about, and define properties for those objects. Each object can also store formatted text in a simple word processor view.