Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 how to Keep track the element inside an array?

views
     
TSming1
post Mar 1 2006, 08:24 PM, updated 20y ago

Getting Started
**
Junior Member
252 posts

Joined: Jan 2005
Guys, i will like to ask how am i going to keep track of an element inside an array......for example : i created three array, the first array is to let user assign the SIZE they want....after that i need to store even and odd number in the other two respectively array....but the problem is when i show all the even number it will show all the element inside the first array and replace the empty value as 0....
how m i going to solve it??
TSming1
post Mar 1 2006, 09:55 PM

Getting Started
**
Junior Member
252 posts

Joined: Jan 2005
by the way the language i am using is C#
naim_mahmood
post Mar 2 2006, 07:24 AM

Getting Started
**
Junior Member
105 posts

Joined: Jul 2005


QUOTE(ming1 @ Mar 1 2006, 09:55 PM)
by the way the language i am using is C#
*
where's your code blink.gif
anthony_yio
post Mar 2 2006, 07:48 PM

........
Group Icon
Elite
1,828 posts

Joined: Jan 2003


QUOTE(ming1 @ Mar 1 2006, 08:24 PM)
Guys, i will like to ask how am i going to keep track of an element inside an array......for example : i created three array, the first array is to let user assign the SIZE they want....after that i need to store even and odd number in the other two respectively array....but the problem is when i show all the even number it will show all the element inside the first array and replace the empty value as 0....
how m i going to solve it??
*
I do not understand you.

But if you need some dynamic array in .NET, you can try ArrayList.



 

Change to:
| Lo-Fi Version
0.0150sec    0.22    5 queries    GZIP Disabled
Time is now: 24th December 2025 - 08:58 AM