473,394 Members | 1,012 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,394 software developers and data experts.

How to create a dynamic multidimensional array

Hi all,

I want to create a file like this:

NC_010109.1 NTRFinder motif_small_b 789 799 . . . ID=NTR-a1;Parent=NTR-a;Name=motif_small_b
NC_010109.1 NTRFinder motif_small_a 811 821 . . . ID=NTR-a2;Parent=NTR-a;Name=motif_small_a
NC_010109.1 NTRFinder motif_small_j 822 832 . . . ID=NTR-a3;Parent=NTR-a;Name=motif_small_j
NC_010109.1 NTRFinder motif_tall_a 833 880 . . . ID=NTR-a4;Parent=NTR-a;Name=motif_tall_a
NC_010109.1 NTRFinder motif_small_a 881 891 . . . ID=NTR-a5;Parent=NTR-a;Name=motif_small_a
NC_010109.1 NTRFinder motif_small_b 892 902 . . . ID=NTR-a6;Parent=NTR-a;Name=motif_small_b

I have 2 arrays: in the first array is the 3rd, 4th and 5th column saved, in the second array the other columns. Now I want to put the arrays together and crate a file like above. The problem is that the 9th column refers to the 3rd (the "Name" and the ID will is counted).
Any idea how I can realise that?

Cheers, Anja
Oct 28 '10 #1
0 1626

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

Similar topics

1
by: ip4ram | last post by:
I have an old set of library,where I used malloc to allocate multidimensional(2 and 3) arrays,using only one malloc call(using void pointers).I get the size of the array in run time.Now that I am...
1
by: @ nospam.com | last post by:
Hi, If Im using Jagged arrays, the following is possible: int arr = new int for(int i=0; i<10; i++) { arr = new int; }
10
by: Ole | last post by:
Goodday everybody, i want to create an array that represents data, that has to be transferred to a pdf doc ( iTextSharp ). The problem is, that i seem too loose my faith. Namely, ( i have...
10
by: | last post by:
I'm fairly new to ASP and must admit its proving a lot more unnecessarily complicated than the other languages I know. I feel this is because there aren't many good official resources out there to...
8
by: Skay | last post by:
Someone challenged me to create a dynamic multidimensional array using auto_ptr http://www.gotw.ca/gotw/042.htm Provides a good way to create a single dimensional array using an adapter. ...
2
by: Gerbus | last post by:
Hi there, I'm working in VC++ 2005 Express, and all I want is to have a dynamic multidimensional array of type Here's my code:
18
by: welch.ryan | last post by:
Hi all, Having a problem with addressing large amounts of memory. I have a simple piece of code here that is meant to allocate a large piece of memory on a ppc64 machine. The code is: /*...
2
by: mareharbor | last post by:
Can anyone help me to change this array to a multidimensional array with 1 more components i want to add another "column" to the array with a similiar specification of "cell.Offset(0, -2).Value". So,...
6
by: themadme | last post by:
hi, im trying to create a multidimensional array and then pass along a few funcitons. this is the way i have created, im sure its the correct way of doing it? // TerrainMapData is struct ...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.