Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Would it be possible to use two CMD windows to display a matrix that is inserted by the user from the keyboard without memorizing it ?. What i would like to achieve is to be able to switch between the two CMD windows in the following way : insert data in the first one and display the numbers that were inserted as a matrix with n lines and m columns in the second one.
I already know how to read the elements of the matrix,how to display them properly and how to open another console from the code that i write. Can anyone point me in the right direction as to how i can display the elements of the matrix in the second console window while they are being inserted by the user in the first window ?
Posted
Comments
Richard MacCutchan 28-Nov-13 12:13pm    
You would need some way of communicating between the two windows, and that would depend on your program. You could use sockets, pipes, memory mapped IO (I think), or just some simple shared file.

1 solution

Yes, it is possible, we call it Inter-Process Communication (IPC)[^].
 
Share this answer
 
Comments
RORVI 28-Nov-13 13:09pm    
Thank you very much !
CPallini 28-Nov-13 13:30pm    
You are welcome.
Maciej Los 28-Nov-13 13:37pm    
WOW!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900