LPM: perl & c++
Joe Hourcle
oneiros at dcr.net
Thu Apr 6 07:28:26 CDT 2000
On Wed, 5 Apr 2000 repett0 at sac.uky.edu wrote:
>
> Would anyone happen to know of the best way to get input to a c++ program.
>
> 1) I create an array of integers in perl
> 2) I pass that array as a command line arg to a c++ prog
>
> Problems
> 1) the array is up to 100,000 ints
> 2) my c++ prog takes about 4 hours to run. I always run our of space on
> my account before I can tell it worked.
>
> Im saying this doesn't work, but Im sure yes or no. So if someone know
> the proper way please share...
When I'm dealing with lists that long, I tend to write it out to a file,
and have the second program read the file.
You might want to write it out to temp space (/tmp, if on a unix box) if
you're having quota problems.
-Joe
More information about the Lexington-pm
mailing list