Login
Search   Moderators Wanted: If you're interested please send your portfolio to info[at]itechforums.com
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,
Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2009, 09:42 AM
cathyy cathyy is offline
Junior Member
 
Join Date: Oct 2009
Posts: 1
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2  
Old 10-23-2009, 09:47 AM
Brian M Brian M is offline
Junior Member
 
Join Date: Jun 2008
Posts: 6
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 10-23-2009, 09:57 AM
Enders_Game Enders_Game is offline
Junior Member
 
Join Date: Oct 2009
Posts: 1
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-05-2010, 04:17 AM
GUCCI73682 GUCCI73682 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 16
Default

Gucci belts men


Gucci belts men

Gucci belts, Men's leather belt on SaleElegant Braided leather beltStudded belts, Rhinestone belts with Best Quality as low as $49.9.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl and PHP both support hash arrays or associative arrays. What are they? Bill Perl 0 05-28-2009 03:56 PM
I have putted a calender in my project in ASP.Net 2008. When I build the project the Randheer .Net (ASP.Net, VB.Net, C#) 0 09-06-2008 12:31 AM
I m going to develop one mini project for project management system.so pankaj454 k .Net (ASP.Net, VB.Net, C#) 0 08-24-2008 06:57 PM
Academic Project MCA BE BTech BE BCA BSc MSc Live Project Trainee ASP.NET... Anupama Nair .Net (ASP.Net, VB.Net, C#) 1 05-07-2008 06:31 AM
How to use marathi languagein c#.net project.Plz Give me sample demo,project? amol .Net (ASP.Net, VB.Net, C#) 0 05-06-2008 05:54 PM

Your Ad Here

All times are GMT. The time now is 03:36 AM.