文件名称:monijieshoufasong
介绍说明--下载内容均来自于网络,请自行研究使用
编写两个计算机程序p1,p2。
p1模拟发送方:首先从界面读取待发送字符(每接受一个字符的输入),保存到文件file1.txt中,并启动计时器;
p2模拟接收方 : 它从file1.txt中查找是否有新字符到来,并提供模拟界面给用户选择:
1. Ack-->接收该字符
2. NAK--〉丢弃
3. 无反应--〉导致超时
将用户选择的结果记录到file2.txt中;
接收的字符保存到file3.txt 中;-The preparation of two computer program p1, p2. p1 simulation sender: First of all, to be sent from the interface to read characters (each character to accept the input), Save to file file1.txt, and start the timer p2 analog receiver: it from file1.txt to find whether there are new characters come and provide analog interface for the user to choose: 1. Ack-> to receive the characters 2. NAK-> discarded 3. no response-> overtime will lead the user to choose the results recorded in file2.txt receiver Save to the characters in file3.txt
p1模拟发送方:首先从界面读取待发送字符(每接受一个字符的输入),保存到文件file1.txt中,并启动计时器;
p2模拟接收方 : 它从file1.txt中查找是否有新字符到来,并提供模拟界面给用户选择:
1. Ack-->接收该字符
2. NAK--〉丢弃
3. 无反应--〉导致超时
将用户选择的结果记录到file2.txt中;
接收的字符保存到file3.txt 中;-The preparation of two computer program p1, p2. p1 simulation sender: First of all, to be sent from the interface to read characters (each character to accept the input), Save to file file1.txt, and start the timer p2 analog receiver: it from file1.txt to find whether there are new characters come and provide analog interface for the user to choose: 1. Ack-> to receive the characters 2. NAK-> discarded 3. no response-> overtime will lead the user to choose the results recorded in file2.txt receiver Save to the characters in file3.txt
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文本文档 .cpp