Welcome to the iTechForums.
If this is your first visit, be sure to check out the
FAQ by clicking the link above.
You may have to
register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
|
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 4
Members:
Number of Users Online:
Welcome to our newest member, |
|
 |

10-23-2009, 09:42 AM
|
|
Junior Member
|
|
Join Date: Oct 2009
Posts: 1
|
|
hi i am workin on a project in vb.net where i have to add two arrays; and remove any
hi i am workin on a project in vb.net where i have to add two arrays; and remove any duplication.? For eg :
I randomly generate values for the two arrays(using a(i)=rand.next(10,99)
Have written these numbers as an example.
Dim a() as Integer={1,2,3,4,1}
Dim b() as Integer={6,7,8,9,6}
Now i need to remove the last index value in the array as there is duplication.
I tried to compare the values using a loop, but it doesn work..
Could some one help me....
no the repeating number need not be at the last index..
jus put it for an eg... im generating the numbers randomly
|

10-23-2009, 09:47 AM
|
|
Junior Member
|
|
Join Date: Jun 2008
Posts: 6
|
|
If you just need to compare the first number with the last one, you don't need a loop. You just compare the first one with the fifth one. if they are equal. Just copy the first 4 numbers to a new array.
To know anything about network security, please visit: http://www.colasoft.com/capsa/?prid=07080001
|

10-23-2009, 09:57 AM
|
|
Junior Member
|
|
Join Date: Oct 2009
Posts: 1
|
|
messsy codeeee try this. stupid yahoo answers not letting me do indents
int i = 0, j = 1
while (a(i) != '{rss:Content}') {
while (a(j) != '{rss:Content}') {
if (a(i) = a(j)) {
a(j) = 0;
}
j++;
}
i++;
j = i + 1;
}
might be screwing up my programming languages, sorry if the syntax is wrong should be easy enough to fix though.
edit: oops wrote a instead of i
|

06-05-2010, 04:17 AM
|
|
Junior Member
|
|
Join Date: Sep 2009
Posts: 16
|
|
Gucci belts men
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT. The time now is 03:36 AM.