W
wutongjoe
Hi all,
I was writting 2 programs in c++ using linux.Say,one is app1 and another
one is app2,the app1 will generate 100 random numbers and then print
them on the standard output,and then the app2 needs to copy the numbers
from the standard output to its int array by doing this way: $ app1|app2
(a pipe ? I am a newbi,and not sure how to call that ).the app1 is
finished and numbers seem ok,the problem is ,how does app2 copy from
screen? like usual ? int main(int argc,char * argv[]) ? what special
header file do i need ? and what function to use ?
Thanks a lot guys!!
I was writting 2 programs in c++ using linux.Say,one is app1 and another
one is app2,the app1 will generate 100 random numbers and then print
them on the standard output,and then the app2 needs to copy the numbers
from the standard output to its int array by doing this way: $ app1|app2
(a pipe ? I am a newbi,and not sure how to call that ).the app1 is
finished and numbers seem ok,the problem is ,how does app2 copy from
screen? like usual ? int main(int argc,char * argv[]) ? what special
header file do i need ? and what function to use ?
Thanks a lot guys!!