GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Jul-2004, 21:39
butters butters is offline
New Member
 
Join Date: Jul 2004
Posts: 1
butters is on a distinguished road

Transferring data between arrays


Hi guys,

i have a program that continuously fills a array with data while it runs, overwritting the previous data when it gets full. i wish to store the data captured in another larger array, say 10 times of the original one, so that i can write 10 cycles of the data generated from the program to disk.

Anyone can help me with the codes to transfer the data from the original array to the large one?
  #2  
Old 05-Jul-2004, 00:46
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,234
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by butters
Hi guys,

i have a program that continuously fills a array with data while it runs, overwritting the previous data when it gets full. i wish to store the data captured in another larger array, say 10 times of the original one, so that i can write 10 cycles of the data generated from the program to disk.

Anyone can help me with the codes to transfer the data from the original array to the large one?
Use a loop.

Make the second array a two dimentional, [10][x]
Keep an index to the row you will fill next -- points to the '10' index
When you need to move, simply loop, moving the old array to the new array. When done, increment the index to the next row
__________________

Cow: You're a lawyer too?
Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase!
  #3  
Old 06-Jul-2004, 12:31
machinated machinated is offline
Regular Member
 
Join Date: Mar 2004
Location: victoria, canada
Posts: 324
machinated has a spectacular aura aboutmachinated has a spectacular aura about
Quote:
Originally Posted by WaltP
Use a loop.

Make the second array a two dimentional, [10][x]

it's dimensional not dimentional
__________________
spasms!!!
  #4  
Old 07-Jul-2004, 22:55
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,234
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by machinated
it's dimensional not dimentional
spoO
__________________

Cow: You're a lawyer too?
Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase!
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion from a data from line into a tabular form in C/C++ gwk C Programming Language 18 21-Aug-2007 14:05
[CONTEST?]Data Structure Test dsmith C Programming Language 2 06-Jun-2004 15:13
reading a char* into struct data spike666 C Programming Language 7 19-Apr-2004 12:06
Automate a data change php form mjfmn MySQL / PHP Forum 4 20-Oct-2003 09:37

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:04.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.