Results for "Category: Data Structures"
This is simple example of doubly linked list. You can insert/delete items anywhere in the list.
The following code, when running, looks like the text is actually typing itself. This technique uses two main things, char arrays and the Sleep(); function. This technique would be great to use for slash screens, presentations or just impressing your friends! Also, please take the time to vote for my code. Thanks!!
This is to help users to know how we can create our own Database Files with any structure using C Language.
This is a linked list program that allows you to add nodes to the front, end, and a specified place in the list. You can also delete nodes from the front, end, specific, and/or all node that are the same.
in recursion we have limited stack to keep data. so when we try to find the solution of tower of honai for 5, we get in trouble. to solve this problem we've non recursive solution of it.
Many a time I found myself needing to display results in 'page' form. And call me old fashioned, devoted to learning or just plain stoopid, but I'd much rather learn how to code something myself than just plug in variables and let a snotty frontpage wizard do it for me. So, here it is, simple code to divide records into 'pages' of your choosing.
Quickly find out the type of variables returned from your adodb recordset. TypeName() function doesn't do the trick. Databases offer additional data types. This script helps solve type problems without having to lookup the name of the numbers returned.
This class is used to interpret phone numbers to and from a database in a specific format. The format is 25 characters long and is explaied withing the script.
A teaching tool that opens both Excel and Text files as data sources using ADO 2.6. The recordset then is streamed into XML for display. Then the XML is transformed back into ADO for updating the data source (Excel file or Text file).
2D Array Implemented as a Queue. http://users.neca.com/jboxall/ja05007.htm
This program implements a doubly linked list as a binary search tree and includes functions to: traverse inorder, preorder & postorder, insert and delete a node, search for a node, and count the height of a given leaf.
Pointers Tutorial. Introduction to pointers for beginners. I hope u find it useful. :)
This is the third installment of the Lessons in C programming tutorials created by me, Alexander. In this lesson I will cover loops. Loops basically do what it sounds like, loop. If you have read lesson 2 you should understand some Boolean expressions. If you do not, you should read it again. When working with loops it is important to understand truth and false. Maybe you should try doing some truth tables with problems.
Now that you have learned all about variables, loops, and if statements it is time to learn the next thing in programming: Functions. Obviously, you should have a good idea about what a function is, as you have used ones like cout before. However, this lesson will be more in detail about not only functions that are already made, but about making your own, or maybe I will continue this later...
This lesson is one on strings. Strings are really arrays, but there are some different functions that are used for strings, like adding to strings, finding the length of strings, and also of checking to see if strings match. Strings are basically sentences, or words. Like, "This is a string".
[Please rate my code.] This helps to maintain a book-list in a small library. The book information contains the title, author, publish year, and ISBN code. The information will be given to you in a text file books.txt. Each line of the file contains data about books. (For more information about this, look at the books.txt file in the zip file) It provides functions to: - add a book - delete a book based on the ISBN code or title - search for a book based on the ISBN code - list all books - list every books written by a specific author It also provides an easy way for users to select a command from a command menu to perform the above functions and to input data from the keyboard. The "books.txt" file is used to initialize the list.
Template for a doubly linked-list data structure, can be used also for queues and stacks.
Hash table management by Jerry Coffin, with improvements by HenkJan Wolthuis.
An introduction to linked lists for beginners. I know there are already some. I guess it won't hurt to have another.
produces a link list as a queue. it is part of my billing project and so uses order placing. nothing complicated.