hi.
i'm working with something like a stack, where i want to be able to *remove*
a specific element and automatically reindex the remaining.
can someone please tell me how to do this? i'm only able to turn up a Myarray.
clear() which cleans out the entire array!
thanks in advance,
m.
--
Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1 8 3472
You have to do it manually. If you're using .Net 2.0, you can actually
*use* a stack; it's part of the new Generics namespace. Although if you
want to remove something in the middle, a generic list (List(Of T)) would
be better.
Robin S.
-----------------------------
"latin & geek via DotNetMonster.com" <u16975@uwewrote in message
news:70c6d94044150@uwe...
hi.
i'm working with something like a stack, where i want to be able to
*remove*
a specific element and automatically reindex the remaining.
can someone please tell me how to do this? i'm only able to turn up a
Myarray.
clear() which cleans out the entire array!
thanks in advance,
m.
--
Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
RobinS wrote:
>You have to do it manually. If you're using .Net 2.0, you can actually *use* a stack; it's part of the new Generics namespace. Although if you want to remove something in the middle, a generic list (List(Of T)) would be better.
Robin S. -----------------------------
>hi.
[quoted text clipped - 7 lines]
>thanks in advance, m.
oh geez. that's a mess. sigh! thank a lot for the quick reply though :)
--
Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
On Apr 16, 3:35 am, "RobinS" <Rob...@NoSpam.yah.nonewrote:
You have to do it manually. If you're using .Net 2.0, you can actually
*use* a stack; it's part of the new Generics namespace. Although if you
want to remove something in the middle, a generic list (List(Of T)) would
be better.
Robin S.
-----------------------------
"latin & geek via DotNetMonster.com" <u16975@uwewrote in messagenews:70c6d94044150@uwe...
hi.
i'm working with something like a stack, where i want to be able to
*remove*
a specific element and automatically reindex the remaining.
can someone please tell me how to do this? i'm only able to turn up a
Myarray.
clear() which cleans out the entire array!
thanks in advance,
m.
--
Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
You have to do it manually. If you're using .Net 2.0, you can actually
*use* a stack;
I was thinking we had stacks and queues in 1.1 - Am I mistaken?
Thanks,
Seth Rowe
rowe_newsgroups wrote:
On Apr 16, 3:35 am, "RobinS" <Rob...@NoSpam.yah.nonewrote:
>You have to do it manually. If you're using .Net 2.0, you can actually *use* a stack; it's part of the new Generics namespace. Although if you want to remove something in the middle, a generic list (List(Of T)) would be better.
Robin S. ----------------------------- "latin & geek via DotNetMonster.com" <u16975@uwewrote in messagenews:70c6d94044150@uwe...
>>hi. i'm working with something like a stack, where i want to be able to *remove* a specific element and automatically reindex the remaining. can someone please tell me how to do this? i'm only able to turn up a Myarray. clear() which cleans out the entire array! thanks in advance, m. -- Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
>You have to do it manually. If you're using .Net 2.0, you can actually *use* a stack;
I was thinking we had stacks and queues in 1.1 - Am I mistaken?
Thanks,
Seth Rowe
You are not mistaken. There has been a Stack and a Queue since framework
1.0.
--
Göran Andersson
_____ http://www.guffa.com
Goran,
But what is it related to the question from the OP?
Cor
"Göran Andersson" <gu***@guffa.comschreef in bericht
news:uk**************@TK2MSFTNGP03.phx.gbl...
rowe_newsgroups wrote:
>On Apr 16, 3:35 am, "RobinS" <Rob...@NoSpam.yah.nonewrote:
>>You have to do it manually. If you're using .Net 2.0, you can actually *use* a stack; it's part of the new Generics namespace. Although if you want to remove something in the middle, a generic list (List(Of T)) would be better.
Robin S. ----------------------------- "latin & geek via DotNetMonster.com" <u16975@uwewrote in messagenews:70c6d94044150@uwe...
hi. i'm working with something like a stack, where i want to be able to *remove* a specific element and automatically reindex the remaining. can someone please tell me how to do this? i'm only able to turn up a Myarray. clear() which cleans out the entire array! thanks in advance, m. -- Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
>>You have to do it manually. If you're using .Net 2.0, you can actually *use* a stack;
I was thinking we had stacks and queues in 1.1 - Am I mistaken?
Thanks,
Seth Rowe
You are not mistaken. There has been a Stack and a Queue since framework
1.0.
--
Göran Andersson
_____ http://www.guffa.com
For true arrays http://msdn2.microsoft.com/en-us/lib...to(vs.80).aspx
Herfried has even a better one,
Cor
"latin & geek via DotNetMonster.com" <u16975@uweschreef in bericht
news:70c6d94044150@uwe...
hi.
i'm working with something like a stack, where i want to be able to
*remove*
a specific element and automatically reindex the remaining.
can someone please tell me how to do this? i'm only able to turn up a
Myarray.
clear() which cleans out the entire array!
thanks in advance,
m.
--
Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
hi all! thanks for everyone's input.
i'm a little lost still with .net, so i had to look up more help to
understand the stacks business, but yes.. now it all works!
thank you to everyone :)
m.
--
Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
Cor Ligthert [MVP] wrote:
Goran,
But what is it related to the question from the OP?
Cor
Read the previos replies, and you might be able to figure it out...
"Göran Andersson" <gu***@guffa.comschreef in bericht
news:uk**************@TK2MSFTNGP03.phx.gbl...
>rowe_newsgroups wrote:
>>On Apr 16, 3:35 am, "RobinS" <Rob...@NoSpam.yah.nonewrote: You have to do it manually. If you're using .Net 2.0, you can actually *use* a stack; it's part of the new Generics namespace. Although if you want to remove something in the middle, a generic list (List(Of T)) would be better.
Robin S. ----------------------------- "latin & geek via DotNetMonster.com" <u16975@uwewrote in messagenews:70c6d94044150@uwe...
hi. i'm working with something like a stack, where i want to be able to *remove* a specific element and automatically reindex the remaining. can someone please tell me how to do this? i'm only able to turn up a Myarray. clear() which cleans out the entire array! thanks in advance, m. -- Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/For...b-net/200704/1 You have to do it manually. If you're using .Net 2.0, you can actually *use* a stack; I was thinking we had stacks and queues in 1.1 - Am I mistaken?
Thanks,
Seth Rowe
You are not mistaken. There has been a Stack and a Queue since framework 1.0.
-- Göran Andersson _____ http://www.guffa.com
--
Göran Andersson
_____ http://www.guffa.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jeff Williams |
last post by:
Ok, everyone loves to talk about dynamic arrays and ptr's etc, they provide
endless conversation :) so here goes:
Will this leak memory (my intuition says yes):
void foo(vector<int*>& vec)
{...
|
by: sugaray |
last post by:
I don't get why the correct way to allocate memory space for
3d-array should be like this in C++:
long (*ptr);
ptr=new long;
and when deallocation
delete ptr;
|
by: J. J. Cale |
last post by:
I have the following. There must be something less cumbersome without push
pop. The function parameter obj is the event.srcElement and has the
attributes(properties?) picNum and alb pinned to it....
|
by: simkn |
last post by:
Hello,
I'm writing a function that updates an array. That is, given an
array, change each element.
The trick is this: I can't change any elements until I've processed
the entire array. For...
|
by: RyanTaylor |
last post by:
I have a final coming up later this week in my beginning Java class and my
prof has decided to give us possible Javascript code we may have to write.
Problem is, we didn't really cover JS and what...
|
by: |
last post by:
I'm fairly new to ASP and must admit its proving a lot more unnecessarily
complicated than the other languages I know. I feel this is because there
aren't many good official resources out there to...
|
by: yancheng.cheok |
last post by:
hello, may i know how i can determine whether a pointer is pointing to
an array or a single item during runtime?
this is because in certain situation, i need to determine whether to
use delete...
|
by: Nickoteen |
last post by:
Hello ..
A begginers question I presume, but it still needs to be asked . .
How can I remove ( or exclude or whatever ) an element from an 1-dimensional
array ?
Let say I have something like...
|
by: ClarkePeters |
last post by:
I have large text files that I read into an array, but before that I take out all the special characters such as tabs, new lines, and returns. However I'm left with all the extra spaces (sometimes...
|
by: =?utf-8?B?5YiY5piK?= |
last post by:
Hi, folks,
Is it possible to delete an element from a sorted array with O(1)
time?
Best regards
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |