是否可以使用两个CMD窗口显示用户从键盘插入的矩阵而无需记忆? [英] 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 ?

查看:108
本文介绍了是否可以使用两个CMD窗口显示用户从键盘插入的矩阵而无需记忆?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用两个CMD窗口显示用户从键盘插入的矩阵而无需记忆?我想要实现的是能够以下列方式在两个CMD窗口之间切换:在第一个中插入数据并显示作为矩阵插入的数字,在第二个中包含n行和m列。 br />
我已经知道如何读取矩阵的元素,如何正确显示它们以及如何从我编写的代码中打开另一个控制台。有没有人能指出我在第一个窗口中用户插入矩阵时如何在第二个控制台窗口中显示矩阵的元素?

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 ?

推荐答案

是的,有可能,我们称之为进程间通信(IPC) [ ^ ]。
Yes, it is possible, we call it Inter-Process Communication (IPC)[^].


这篇关于是否可以使用两个CMD窗口显示用户从键盘插入的矩阵而无需记忆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆