Advertisement

Results for "Category: Data Structures"

C_Volume2 #84884
Auto insert Guid Datatable

Ok, I ran into a problem, MS out of some odd wisdom didn't do as you would think with the defaultvalue of a data column. you would think it so simple right? In a database such as SQL server you can set the default value to a function, I can do this with a datacolumn too such as. column1.defaultvalue = system.guid.newguid Though this has an issue, if you use this in a grid you will see as you add new rows that the darn guid is the same. It's calling the newguid only once when setting up the table and it's holding that value static for the rest of the life of the datatable\datacolumn. This goes against common knowlege in how MS does things in other area's, such as the before mentioned SQL server using NewID() will get you a new ID each time. Keep in mind that even other funtions like Now() (which returns current date time) won't work, the defaultvalue will always be the same datetime. So I don't have a solution for the default, I have a different solution. Custom datatable and custom datacolumn classes. You will see in my custom column style that there is a new property called (autogenerateguid)if set to true then it will then set each new row with the correct new guid. Though this is all code based, it works for what I need it to do. It also features the use of an un-documented function and class. NewRowFromBuilder Function System.Data.DataRowBuilder Class I've seen other post's that show to use the rowchanging or positionchanged events in order to do the same thing, this example gets to the source of the newrow creation. What would be better is that if you assign a function that MS would call that function each time instead of this lame static method.

C_Volume2 #85026
AddressBook

Implementation of Arraylist collection, Listbox and Serialization

Java_Volume1 #99808
A 2D Array Implemented as a Queue

2D Array Implemented as a Queue. http://users.neca.com/jboxall/ja05007.htm

Java_Volume1 #99809
Binary Search Tree

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.

Java_Volume1 #99889
Pointers Tutorial.

Pointers Tutorial. Introduction to pointers for beginners. I hope u find it useful. :)

Java_Volume1 #99905
Basics of C/C++: Part III--Loops

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.

Java_Volume1 #99908
Basics of C/C++ Part 4: Functions

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...

Java_Volume1 #99911
Intro to C/C++ Part 9: Strings

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".

Java_Volume1 #99927
Library book managment using linked list

[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.

Java_Volume1 #99995
Doubly Linked List Template

Template for a doubly linked-list data structure, can be used also for queues and stacks.

Java_Volume1 #100015
Hash table functions

Hash table management by Jerry Coffin, with improvements by HenkJan Wolthuis.

Java_Volume1 #100074
What is a linked list?

An introduction to linked lists for beginners. I know there are already some. I guess it won't hurt to have another.

Java_Volume1 #100090
Link list (queue)

produces a link list as a queue. it is part of my billing project and so uses order placing. nothing complicated.

Java_Volume1 #100175
Expression calculator using stacks. Infix to Postfix.

Demonstration of Reverse Polish Notation expression calculation using Stacks.

Java_Volume1 #100176
Expression calculator using Expression trees. Infix to Postfix. Reverse Polish Notation(RPN)

Demonstration of expression trees. Creating and evaluationg an expression tree, a special type of binary tree.

Java_Volume1 #100289
Text that types itself!

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!!

Java_Volume1 #100297
Character arrays, structures and unions

This program covers character arrays, structures, and unions - three VERY powerful features of C++. The first part, character arrays, explains and demostrates the use of the [] operators when dealing with strings. The second part, structures, demostrates the use of structures in real-world applications and defines the differences/similarities between structures and classes. The third and final part, unions, identifies the word 'unions' as a keyword, shows how their used and gives a copy-and-pastable example.

Java_Volume1 #100424
Doubly Linked List

This is simple example of doubly linked list. You can insert/delete items anywhere in the list.

Java_Volume1 #100543
Code Example - Stack Template

A simple stack template.

Java_Volume1 #100544
Code Example - List Template

a simple little list template, done for practice. Comes with example driver.

Languages
Top Categories
Global Discovery