Program
implements array as a stack.
#include
#include
#define
MAX 10
struct
stack
{
int arr[MAX] ;
int top ;
}
;
void
initstack ( struct stack * ) ;
void
push ( struct stack *, int item ) ;
int
pop ( struct stack * ) ;
void
mai…[ More ]
Program to
maintain a linked list
#include
#include
#include
/*
structure containing a data part and link part */
struct
node
{
int data ;
struct node * link ;
}
;
void
append ( struct node **, int ) ;
void
addatbeg ( struct node **, int )…[ More ]
Program that
implements queue as an array. */
#include
#include
#define
MAX 10
void
addq ( int *, int, int *, int * ) ;
int
delq ( int *, int *, int * ) ;
void
main( )
{
int arr[MAX] ;
int front = -1, rear = -1, i ;
clrscr( ) ;
…[ More ]
/* CH8PR4.C: Program to
insert and delete a node from the binary
search tree. */
#include
#include
#include
#define
TRUE 1
#define
FALSE 0
struct
btreenode
{
struct btreenode *leftchild ;
int data ;
struct btr…[ More ]
/* CH7PR5.C: Program that
implements circular queue as an array. */
#include
#include
#define
MAX 10
void
addq ( int *, int, int *, int * ) ;
int
delq ( int *, int *, int * ) ;
void
display ( int * ) ;
void
main( )
{
int ar…[ More ]
CircularQueue.C
#include
#include
#define maxqueue 5
int queue[maxqueue];
int front = -1;
int rear = -1;
int m,n;
main()
{
while(1)
{
printf("\n
1.Insert\n 2.Delete\n 3.Display\n 4.Exit\n");
printf("Enter
your choice = ");
scanf("%d",&…[ More ]
STORE-TOLL an Billing Project
Code :
#include
#include
#include
#include
#include
#include
#define NO 0
#define YES 1
#define NONE -1
//in a menu there can be three items
#define MAX_MENU 6
int x,y;
int selection;
int button,x,y;
void *p;
size_t area;…[ More ]
"THE
SCHEDULER"
THE PROJECT IS MADE FOR THE EXECUTION OF TIME TABLES. A
COMMON PROBLEM ARISES THAT A COMMON ROOM OR A COMMON TEACHER IS SHARED BY TWO
OR MORE CLASSES. THIS PROJECT IS TO SOLVE PROBLEMS LIKE THIS.
*************************************************************************…[ More ]
"THE
SCHEDULER"
THE PROJECT IS MADE FOR THE EXECUTION OF TIME TABLES. A
COMMON PROBLEM ARISES THAT A COMMON ROOM OR A COMMON TEACHER IS SHARED BY TWO
OR MORE CLASSES. THIS PROJECT IS TO SOLVE PROBLEMS LIKE THIS.
*****************************************************************************…[ More ]
MYSLAMBOOK.C
#include
#include
#include
#include
#include
#include
union REGS i,o;
void main()
{
int
driver,mode,x,y,but,z;
//intialitions of all variables
and
functions
driver = DETECT;
int
initmouse(); // to load mouse
driver
int resmpt…[ More ]
Class Record Retrieval Program
#include
#include
#include
#include
#include
#include
#define MAX_STUD 200
char logusr[80];
struct usrlog
{
char name[80];
struct date d;
struct time t;
};
struct user
{
char lname[80];
char lpassword[80];
int …[ More ]