Professional Documents
Culture Documents
ADD
SUBTRACT
MULTIPLY
?
?
count1 = 0
count2 = 4
For i = 0 To 1
For j = 0 To 1
mat1(i, j) = count1
mat2(i, j) = count2
count1 = count1 + 1
count2 = count2 - 1
Next j
Next i
For i = 0 To 1
For j = 0 To 1
List1.AddItem mat1(i, j)
List2.AddItem mat2(i, j)
Next j
Next I
Private Sub Command1_Click()
For i = 0 To 1
For j = 0 To 1
mat3(i, j) = mat1(i, j) + mat2(i, j)
List3.AddItem mat3(i, j)
Next j
Next i
End Sub
Private Sub Command3_Click()
For i = 0 To 1
For j = 0 To 1
mat3(i, j) = mat1(i, j) - mat2(i, j)
List3.AddItem mat3(i, j)
Next j
Next i
End Sub
For i = 0 To 1
For j = 0 To 1
mat3(i, j) = 0
For k = 0 To 1
mat3(i, j) = mat3(i, j) + (mat1(i, k) * mat2(k, j))
Next k
List3.AddItem mat3(i, j)
Next j
Next i
Revising few old concepts!!!
m Intellisense ::
º Ñ ile writing programs/codes, different properties or met ods
are accessed.
º Sometimes its too toug to remember syntax !
º t ere are two types of intellisense ::
NOTE::
one can erase and edit content of immediate window
eit er by back space or delete!
m It s ows names of objects and related properties ,
met ods and events.
m To open object browser click on ³object browser´
on toolbar or follow ±
View - > object browser
m a new window will open up called ³object browser
³.
m To view objects of visual basics , select library as
VB,
m Programming languages ::
[1] Procedural
[2] Object oriented
m POP ::
A procedural Oriented programming language emp ases
on procedures, functions used in writing a program!
It concentrates on functions rat er t en t e data being
used!
m Object oriented Programming language ::
º OOPS is a programming language t at concentrates on
objects and met ods to design different applications.
º OOPS as many interesting features suc as«
Encapsulation
Polymorp ism
In eritance
Data abstraction