Outline ·
[ Standard ] ·
Linear+
how to Keep track the element inside an array?
|
TSming1
|
Mar 1 2006, 08:24 PM, updated 20y ago
|
Getting Started

|
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
|
Mar 1 2006, 09:55 PM
|
Getting Started

|
by the way the language i am using is C#
|
|
|
|
|
|
naim_mahmood
|
Mar 2 2006, 07:24 AM
|
Getting Started

|
QUOTE(ming1 @ Mar 1 2006, 09:55 PM) by the way the language i am using is C# where's your code
|
|
|
|
|
|
anthony_yio
|
Mar 2 2006, 07:48 PM
|
........
|
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.
|
|
|
|
|