Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,097 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,844 people online right now. Registration is fast and FREE... Join Now!




finding index

 
Reply to this topicStart new topic

finding index

Thapa
10 May, 2008 - 07:49 PM
Post #1

New D.I.C Head
*

Joined: 24 Sep, 2007
Posts: 20



Thanked: 1 times
My Contributions
Array ‘arr1’
0 1 1

Array ‘arr2’
1 1 0 1
0 1 1 1
1 0 0 1
0 0 1 1
0 0 0 0
1 1 0 0
0 0 1 0
1 0 1 0

Could Any body tell me how can I find out which index of ‘arr2’ contain the matching binary data as arr1 contain. Below I have tried to declear and initilize two arry with random data but I am not beeing able to proceed further. Looking forward for suggestions.

CODE

Dim arrMemory(3) As Integer
Dim arrStrategies(7, 3) As Integer

For i = 0 To 2
            arrMemory(i) = (rndRandom.Next(2))
Next

For i = 0 To 7
            For x = 0 To 3
                arrStrategies(i, x) = (rndRandom.Next(2))
            Next
Next

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 12:21AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month