473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

create subarray

say I have an array string [] array1={"aa","bb"...};

I want to create second array that will contain all elements first
array except for the very first one ?

Thanks
Oct 16 '08 #1
4 3686
On Thu, 16 Oct 2008 13:52:07 -0700, puzzlecracker <ir*********@gmail.com>
wrote:
say I have an array string [] array1={"aa","bb"...};

I want to create second array that will contain all elements first
array except for the very first one ?
And?
Oct 16 '08 #2
On Oct 16, 10:54*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
On Thu, 16 Oct 2008 13:52:07 -0700, puzzlecracker <ironsel2...@gmail.com>*
wrote:
say I have an array string [] array1={"aa","bb"...};
I want to create second array that will contain all elements first
array except for the very first one ?

And?
Use:
Array.Copy
Oct 16 '08 #3
puzzlecracker wrote:
say I have an array string [] array1={"aa","bb"...};

I want to create second array that will contain all elements first
array except for the very first one ?

Thanks
Well, that's pretty easy, isn't it?

But, do you really need to do that? Why not just simply not use the
first item? Or prehaps you should look earlier in the chain; where do
you get the data from in the first place, and is there a way to omit the
first item there?

--
Göran Andersson
_____
http://www.guffa.com
Oct 17 '08 #4
On Oct 17, 6:03*am, Göran Andersson <gu...@guffa.comwrote:
puzzlecracker wrote:
say I have an array string [] array1={"aa","bb"...};
I want to create second array that will contain all elements first
array except for the very first one ?
Thanks

Well, that's pretty easy, isn't it?

But, do you really need to do that? Why not just simply not use the
first item? Or prehaps you should look earlier in the chain; where do
you get the data from in the first place, and is there a way to omit the
first item there?

--
Göran Andersson
_____http://www.guffa.com
Well, my first item is the name of the class (which I use to create
an instance), and the rest of the arguments are parameters for a
method into that class instance.
Oct 17 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ante Perkovic | last post by:
Hi, everybody First, the code: --------------------- $maxNo = 500 $numbers = range (1,$maxNo); srand ((double)microtime()*1000000); shuffle ($numbers); $subarray = array_slice ($numbers, 0,...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
1
by: Need Helps | last post by:
Writing my own algorithm to make a subarray in Visual C++ would be easy enough, but is there a useful function or method for doing this? I have strings stored as TCHAR and I want to get substrings...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
9
by: Peter | last post by:
Hello£¬everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the...
37
by: Steven Bethard | last post by:
The PEP below should be mostly self explanatory. I'll try to keep the most updated versions available at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
18
by: Steven Bethard | last post by:
I've updated the PEP based on a number of comments on comp.lang.python. The most updated versions are still at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
5
oll3i
by: oll3i | last post by:
why when i try to use subarray (for byte array)function eclipse says it's undefined but i read that this function is defined in java? Thank YOU
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.