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;
}
A collection of information related to the Computing course at Palmer's College
Monday, 28 September 2009
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:
Please make use of workshop, the timetable is on your Dashboard
The main tasks you should be working are:
- Identifying and organising/creating graphics for your interfaces
- Experimenting with the technology you are using
- 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
- 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
Please make use of workshop, the timetable is on your Dashboard
Subscribe to:
Posts (Atom)