Simple Linked List Class

/*
 *  Title: class LinkedList
 *  Description: Simple Linked List class to demonstrate the basic principles
 *  of implementing a linked list. This should not be taken as a production
 *  quality class (see the text book instead).
 *  Copyright:   Copyright (c) 2002
 *  Company:     Dept. of Computer Science, University College London
 *  @author Graham Roberts
 *  @version 1.0 01-Mar-02
 */

public class LinkedList

Simple Linked Lists

This shows three programs.

    * A simple singly-linked list. This shows the basics.
    * A doubly-linked list. This is almost as simple as the singly-linked list, but makes some operations easier.
    * Use of the java.util.LinkedList class, which is easy to use because it hides the details.

Simple singly-linked list done "by hand"

A linked list on C

Although linked lists sounds kind of scary, don't worry they are really easy to use once you've got a little practice under your belt! When I first learned this odd way of storing data, I really thought that I wouldn't be using them again. I certainly learned differently! Linked lists form the foundation of many data storing schemes in my game!

They are really nice when you don't know how many of a data type you will need, and don't want to waste space. They are like having a dynamically allocated string that fluctuates in size as the program runs. Before I really confuse you lets get into a better explanation!

Building a binary tree in C

The following program shows how to build a binary tree in a C program. It uses dynamic memory allocation, pointers and recursion. A binary tree is a very useful data-structure, since it allows efficient insertion, searching and deletion in a sorted list. As such a tree is essentially a recursively defined structure, recursive programming is the natural and efficient way to handle it.

How To Program For Windows Registry

This will guide you, how to use Windows Registry to store user specific non critical data which can be retrieved across applications.

Background
The Registry is split into a number of logical sections better known as hives.

Building a linked list in C

The following program shows how a simple, linear linked list can be constructed in C, using dynamic memory allocation and pointers.
#include
#include

struct list_el {
int val;
struct list_el * next;
};

PHP & MySQL: The ORDER BY Keyword

The ORDER BY keyword is used to sort the data in a recordset.

The ORDER BY keyword sort the records in ascending order by default.

If you want to sort the records in a descending order, you can use the DESC keyword.

Linked List in C#

The following code demonstrates how to write and use a link list in C#.

using System;

namespace ThisExample
{
class LinkList
{
public string Val;
public object NextItem;
[STAThread]
static void Main(string[] args)

Create an Upload-File Form

To allow users to upload files from a form can be very useful.

Look at the following HTML form for uploading files: