|
-
Nov 6th, 2003, 11:52 AM
#1
Thread Starter
Member
Complex Multidimensional Array Ops...
I have a C# class that reads in a four-dimensional array from a series of flat text files. The clients of this class won't need access to all of the data at any one time, only certain parts of it. Is there a way I can write a method to return a multidimensional array with specific dimensions eliminated?
For instance, take an array of sales figures:
Code:
double[,,,] dSales = new double[NUM_YEARS, NUM_MONTHS, NUM_SALESPEOPLE, NUM_PRODUCTS];
This array provides sales figures organized by year, month, salesperson, and product. If a client needs access to sales figures of product #2 in August, it only needs a two dimensional array (year and salesperson). The other two dimensions (month and product) have been specified.
Is this even possible? If so, any ideas on how to implement it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|