Public Class Form1
Dim player(50, 1) As String
Dim arrayrow As Integer
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
If txtName.Text = "" Or txtNumber.Text = "" Then
MsgBox("Please enter NAME and NUMBER")
Else
player(arrayrow, 0) = txtName.Text
player(arrayrow, 1) = txtNumber.Text
txtName.Text = ""
txtNumber.Text = ""
arrayrow = arrayrow + 1
txtName.Focus()
End If
End Sub
Private Sub btnShowTeam_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShowTeam.Click
arrayrow = 0
For arrayrow As Integer = 0 To 50
If Not player(arrayrow, 0) = "" Then
lstTeam.Items.Add(player(arrayrow, 0) & " | " & player(arrayrow, 1))
End If
Next
End Sub
End Class
NOOB PWNER :p
Wednesday, 22 June 2011
Sunday, 27 March 2011
FIFO and LIFO
PRINTER
FIFO - first in first out
Queues have to pointer's. A HP(head pointer) and a TP(tail pointer)
The document that is at the TP is the one that is about to be sent to the printer, as a document is taken from the TP it allows another document to be placed in the print queue, naturally in the HP.
STACK
LIFO - last in first out
Stacks have one pointer, it increments downwards and upwards as new documents/info is processed or added in.
A stack is used to record the returned addresses when a procedure is called.
FIFO - first in first out
Queues have to pointer's. A HP(head pointer) and a TP(tail pointer)
The document that is at the TP is the one that is about to be sent to the printer, as a document is taken from the TP it allows another document to be placed in the print queue, naturally in the HP.
STACK
LIFO - last in first out
Stacks have one pointer, it increments downwards and upwards as new documents/info is processed or added in.
A stack is used to record the returned addresses when a procedure is called.
Thursday, 10 March 2011
RSS
RSS (most commonly expanded as "Really Simple Syndication") is a family of web feed formats used to publish frequently updated works—such as blog entries, news headlines, audio, and video—in a standardized format.
MICROBLOGGING
Microblogging is a broadcast medium in the form of blogging. A microblog differs from a traditional blog in that its content is typically smaller in both actual and aggregate file size. Microblogs "allow users to exchange small elements of content such as short sentences, individual images, or video links".
WIKI
A wiki (WIK-ee) is a website that allows the creation and editing of any number of interlinked web pages via a web browser. Examples include community websites, corporate intranets, knowledge management systems, and note services.
Tuesday, 8 March 2011
Representation of different Data types
integer - 32bit
boolean - 1bit
date/time - Integer/Decimal
currency - Decimal (limited)
character - 16bit
boolean - 1bit
date/time - Integer/Decimal
currency - Decimal (limited)
character - 16bit
Subscribe to:
Posts (Atom)