473,499 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Jagged array program

10 New Member
Sir plz explain and also send me the code of dynamic jagged array
i make static jagged array
but how we make dynamic jagged array
Apr 21 '10 #1
7 3456
tlhintoq
3,525 Recognized Expert Specialist
Can anybody send me code to [...]
The Bytes volunteers are not here to write your code for you. This is not a free homework service.
Bytes is very much a "Give me a fish I eat for a day. Teach me to fish I eat for a lifetime" kind of place. Just giving you the code doesn't help you learn near as effectively as good old-fashioned trial and error.

Please research your problem before posting your question.
A great place start your research is the MSDN library. This library is a bunch of articles and documentation provided by Microsoft about anything to do with .NET development. I recommend that you bookmark the resource for your future reference.

After you research, do some experimenting. Then if your trials aren't doing what you expect, post the code and relevant messages/errors and we'll see what we can do to point you in the right direction for making it work.

Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "C# custom events" or "VB datagrid Excel". I've found this to be a very effective tool.
Please visit the Posting Guidelines for tips on how to ask questions to get the best help.
Apr 21 '10 #2
artov
40 New Member
I know, I am not allowed to answer these "solve my home work" questions, but..

What do you mean by "static jagged array"? To me, jagged array is an (one dimensional) array, that has arrays as its elements. The element arrays can have different dimensions (i.e. they are jagged). How can you statically decide the jaggedness? Aren't each element created as needed, i.e. dynamically?
Apr 23 '10 #3
tlhintoq
3,525 Recognized Expert Specialist
An address book entry?
Element 1: person
sub 1: firstname
sub 2: last name
Element 2: address
sub 1: street
sub 2: city
sub 3: state
sub 4: zip code

You know in advance that every name is 2 elements long and every address is 4 elements long.

Not a good way in my opinion - but it doesn't take too much imagination to see how someone might make a jagged array of fixed element count.
Apr 23 '10 #4
jkmyoung
2,057 Recognized Expert Top Contributor
True, most of the time instead of having a jagged 2-dimensional array, it pays to build a subclass with a single dimensional array, and have an array of the subclass.

Is there a real purpose to this exercise, or is it for strictly academic purposes?
Apr 23 '10 #5
ASIM ABBAS
10 New Member
@artov
sir static array means that i give value in array in design time ?what the method to give value in run time in jagged array
May 10 '10 #6
ASIM ABBAS
10 New Member
@jkmyoung
sir for real purpose
May 10 '10 #7
jkmyoung
2,057 Recognized Expert Top Contributor
I stick with my original response: have a subclass with an array, unless there is a real, compelling reason to do otherwise. I have seen no such reason thus far.
Otherwise, could you post how you're creating your static array, and show an example of how you would like to create your dynamic array?
May 10 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1361
by: ron | last post by:
Hi, I am Serializing a Jagged Array and it works fine. The qusetion i have is way dose the XML formatting do the following. I have a single-dimensional array that has 21 elements of type int,...
2
2727
by: Jannis Linxweiler | last post by:
Hi NG! I have a problem with my unsafe code. I'd like to get a pointer on a jagged array like this: double arr = new double; for (int i....); arr = new double;
6
8436
by: Carlos | last post by:
Ok I have the following Jagged array double mData = new double; for (int x = 0; x <= 259200-1; x++) { mData=new double; } And I load the data in to the array :
2
6174
by: deko | last post by:
I trying to create a jagged array of two arrays, with the second array being an array of two-dimensional arrays. A graphical representation might look like this: x y y y x y x y y x ...
0
928
by: craig.conboy | last post by:
Using MC++ .Net 2.0, with the CLR Profiler (from Microsoft) I am seeing that 3 blocks of memory, each ~48MB in size, being allocated by some code that initializes a managed array. It is a jagged...
2
3950
by: tiberiu.motoc | last post by:
Hi. I've asked this question on the MSDN forums, but I've had no replies. I'm really stuck, so I'm gonna try my luck here. I have a Java web service which contains a simple function; the...
5
10322
by: TS | last post by:
is there some code somewhere that does this? i have a jagged array that is not jagged, it has an equal number of rows and columns in each array so it should convert but want to get the code to do...
17
7211
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hi Gurus, I need to transfer a jagged array of byte by reference to unmanaged function, The unmanaged code should changed the values of the array, and when the unmanaged function returns I need...
3
6083
by: pinkfloydfan | last post by:
Hi there I have a C# program that produces a lot of data that I currently store in a jagged array and I have a couple of questions that I was hoping someone might shed some light on for me...
0
7171
Oralloy
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,...
0
7386
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5468
agi2029
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,...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3098
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...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
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...

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.