say I have an array string [] array1={"aa","b b"...};
I want to create second array that will contain all elements first
array except for the very first one ?
Thanks 4 3693
On Thu, 16 Oct 2008 13:52:07 -0700, puzzlecracker <ir*********@gm ail.com>
wrote:
say I have an array string [] array1={"aa","b b"...};
I want to create second array that will contain all elements first
array except for the very first one ?
And?
On Oct 16, 10:54*pm, "Peter Duniho" <NpOeStPe...@nn owslpianmk.com>
wrote:
On Thu, 16 Oct 2008 13:52:07 -0700, puzzlecracker <ironsel2...@gm ail.com>*
wrote:
say I have an array string [] array1={"aa","b b"...};
I want to create second array that will contain all elements first
array except for the very first one ?
And?
Use:
Array.Copy
puzzlecracker wrote:
say I have an array string [] array1={"aa","b b"...};
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
On Oct 17, 6:03*am, Göran Andersson <gu...@guffa.co mwrote:
puzzlecracker wrote:
say I have an array string [] array1={"aa","b b"...};
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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, 24);
ksort ($subarray); // this also don't work!!!
|
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 want my users to be able to select a report, click on a command
button on a form, which will then automatically create the report as a
pdf file and save it to the user's machine.
I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
|
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 of those, but the basic String.substr() function doesn't compile on that. I tried this
TCHAR string
TCHAR substring
//function that returns a value for strin
substring = string->Substring(3,3)
and I get this when I compile
error C2227: left...
|
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 shortcut to my program/utility
(2) Entry in Windows' Start --> Program Menu.
Actually in my VB.Net solution I have two projects (1) MYPROGRAM (2)
MYPROGRAM_INSTALLER. MYPROGRAM is a "Windows Application".
MYPROGRAM_INSTALLER is a "SetUp Wizard"...
|
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 other
things, can create views based on existing tables and a table of
column name equivalents. If I accidently introduce a column name
equivalent that is the same as another column, I end up with a CREATE
VIEW SQL statement that is in error, if...
| |
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 records in the database.
Is it possible to create a SQL Server database using vb.net? I know I can
use vb.net and ADOX to create a Access database. But I can't create SQL
database using vb.net.
|
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
http://ucsu.colorado.edu/~bethard/py/pep_create_statement.html
PEP: XXX
Title: The create statement
|
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
http://ucsu.colorado.edu/~bethard/py/pep_create_statement.html
In this post, I'm especially soliciting review of Carl Banks's point
(now discussed under Open Issues) which asks if it would be better to
have the create statement translated into:
|
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
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |