Hi
I have two member arrays of a structure:
Int intarray[5];
Coledatetime datearray[5];
Now, at anyone time, from 2 to 5 of the items will be populated (starting
index 0). And I need to shuffle just those entries up like this:
Imagine that indexes 0, 1 and 2 are used. Then 1 moves to 0, 2 to 1, and 0
to 2.
Follow?
This is what I thought:
Int orgint = intarray[0];
Coledatetime orgdate = datearray[0];
For(I = 1; I < inumpopulated; i++)
{
intarray[i-1]=intarray[i];
datearray[i-1]=datearray[i];
}
Intarray[i-1] = orgint
Datearray[i-1] = orgdate
I hope that makes sense. It that how you would do this?
Andrew Truckle
CAD Manager
Atkins
Survey and Mapping
Connect 17
Avon Way,
Langley Park,
Chippenham
Wilts SN15 1GG
Direct Phone: 01249 455032
Switchboard: 01249 455000
Fax: 01249 455045
email:[EMAIL PROTECTED]
This email and any attached files are confidential and copyright protected.
If you are not the addressee, any dissemination of this communication is
strictly prohibited. Unless otherwise expressly agreed in writing, nothing
stated in this communication shall be legally binding.
_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription
changes, and list archive.