How to output a cout to another dos window?

Hi everyone...

I am not sure if this has been asked before... but my problem is...

int main(int argc, char *argv[])
{
int count;
for (count = 1; count < argc; count++)
cout << argv[count] << " ";

cout << endl;
return 0;
}

So basically, I open up two dos windows and run this sample program on one window.. What I want it to do is when I write <NameOfFile> Hello...
... The "Hello" is shown in the other window.... instead of the one I am using...
Is there any extra lines I have to add to make it possible? Lolx...
Thanks again!!!
Topic archived. No new replies allowed.