| PROGRAM:
|
Queue
(Binary Executable File) |
| DESCRIPTION:
|
This
program illustrated the commonly used data structure algorithm
called queue. The user type in any string (character or integer)
the way you would normally do in a word processor program. To
stop the string from enque (storing the data into the queue
list), type ($) and press [Enter]. All the data stored in the
queue list will be deque (process of dumping data off the queue
list in the order of first in first out (FIFO) process). |
| PLATFORM:
|
MS-DOS
|
| EXECUTING
PROGRAM: |
Type
the name of the file and press enter (if you did not change
the name of the file type "queue" [Enter]) |
|
| PROGRAM:
|
Hexdump
(C Source Code) |
| DESCRIPTION:
|
Hexdump
is a debugging tool designed to output hexadecimal value of
the data contained in the file. |
| PLATFORM:
|
Linux O/S
|
| EXECUTING
PROGRAM: |
You
need to first compile the source code using C compiler (recommend
GNU C).
To
compile the source code: $gcc hd.c -o hd [Enter]
To execute the binary code: $hd <filename> [Enter]
Note:
if you have a large file, used command "more" -
example :$hd <filename> |more [Enter]
|
|
| PROGRAM:
|
Storage
File DB System (C Source Files)
load.c
Load plain ASCII text data and convert the data into
index.dat file and data.dat file.
list.c
List the data stored in the data file onto the terminal.
modify.c
Allows the user to modify any of the field in a specific
record in the database.
delete.c
Allows the user to delete the record.
add.c
Allows the user to add new record onto the database
until the database is full (max 100 records).
showtree.c
Show the user the tree structure of the record in the
database
btree.h
Required header file
|
| DESCRIPTION:
|
The
Storage Database System program is customized to store only
musical score (a project assignment in file structure
course). There are five programs involved in development
of the software. Each program has its own purpose. The SDS program
allows user to store musical
data (given example data sheet) into database file
(maximum of 100 records). The user can add, delete, modified,
list, and load database file.
You can download the source codes and modified them any
way you want. I only request one thing, when you are done please
send me an e-mail with the work you have done or tell me how
I can download your modified version. I just want to see
what you did to them and how they are helpful to you.
|
| PLATFORM:
|
Sun
Solaris O/S |
EXECUTING
PROGRAM:
|
You
need to first compile the source code using C compiler (recommend
GNU C).
To compile the source code: $gcc <filename>.c -o <filename>
[Enter]
To
execute load program (you don't need this, unless you have
the same data
file): $load data.txt [Enter]
To execute list program: $list [Enter]
To execute add program: $add <musical score>
[Enter]
Then follow the instruction...
To
execute modify program: $modify <musical score> [Enter]
Then follow the instruction...
To
execute delete program: $delete <musical score> [Enter]
To execute showtree program: $showtree [Enter]
|
|
|
©
Copyright 2000, Jay Suttiruttana
|
|
|
|
|
|