文件名称:monijieshoufasong
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.38kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写两个计算机程序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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.