calling a code

May 29, 2013 at 4:00am
Hi all
I have a code that produces two vector called x and y,
I want to use these vectors in another code,
How can I do that?
maybe this question is absurd, because I'm really beginner.
Thank you
Yeki
May 29, 2013 at 5:01am
Well, can I see the code you're mentioning?
May 29, 2013 at 9:03am
closed account (DEUX92yv)
You want to create vectors with one program, and use them in another program? Is it possible to combine these programs? That is by far the least painful method. If not, write the two vectors to a file (or one file each) and read from those files in the second program.
May 30, 2013 at 4:17pm
Thank you for your guidance, but I can't understand how to use file, can you provide me a short example?
Thank you again
May 30, 2013 at 5:33pm
Well, are these two vectors in their own classes as of right now, or embedded in the main() function of a different code?
Topic archived. No new replies allowed.