Monday, 28 September 2009

Method to display formatted queue contents

Copy and paste the code below into your Queue class, it can then be used to display the entire Queue contents on a label.


/// <summary>
/// Retrieves a formatted String showing Queues occupancy
/// </summary>
/// <returns>A vertically formatted queue for label display</returns>
public String GetListIllustrated()
{
    String list = null;
    for (int i = 0; i < MAX; i++)
    {
        //add a newline for any other than first
        if (i > 0)
            list += "\n";
      
        //add queue position
        list += "[" + i.ToString() + "] [";
      
        //show item if it exists
        if (q[i] != null)
            list += q[i];
        else
            list += "null";
        list += "]";

        //show first and free pointers at location
        if (first == i)
            list += " <--first";
        if (free == i)
            list += " <--free";
    }
    return list;
}


A2 Project work during first term

As we are concentrating on Theory work until January we need to keep the project work trickling forward.

The main tasks you should be working are:
  1. Identifying and organising/creating graphics for your interfaces
  2. Experimenting with the technology you are using
If you are working on a website:
  • Getting familiar with CSS,
    and tags if you are working on a website

  • Attempting to hook up a simple database to a website project
  • Identifying any potential problems
 if you are working on a game/simulation
  • Create your graphic tile sheets appropriately learning graphics packages
  • After half term we can look at the game engine and c# coding required
  • Experiment with any logic routines
We will devote at least the 45 minute lesson to this work.

Please make use of workshop, the timetable is on your Dashboard