-
C++ programming language swap the standard output stream flow, the need to suppo...
C++编程语言互换流中的标准输出流,需要iostream.h支持。读为 "c out"-C++ programming language swap the standard output stream flow, the need to support iostream.h. Reading for the " c out"
- 2023-03-14 11:45:03下载
- 积分:1
-
EULER1
说明: Euler 回路问题
.问题描述:
对于给定的图G 和G 中的2 个顶点v 和w,连接顶点v 和w 且经过图中每条边恰好1 次
的路径称为顶点v 和w 之间的1 条Euler 路。当v=w 时得到一条首尾相接的Euler 回路。
.编程任务:
对于给定的图G,编程计算图G 的一条Euler 回路。
.数据输入:
由文件input.txt 给出输入数据。第1 行有2 个正整数n 和m,表示给定的图G 有n 个
顶点和m 条边,顶点编号为1,2,…,n。接下来的m 行中,每行有2 个正整数u,v ,表示
图G 的一条边(u,v) 。
.结果输出:
将编程计算出的Euler 回路输出到文件output.txt 。如果不存在Euler 回路,则输出-1。(Euler circuit problem. Problem description : for a given graph G and G of two vertices v, w, connectivity and vertex v w map through which each side precisely the path to a meeting called vertices v, w between a Euler Road. When v = w be an end-to-end circuit Euler. . Programming tasks : for a given graph G, programming terms of a graph G Euler circuit. . Data input : from the document input.txt given input data. Line 1 has two positive integers n and m, to the graph G with n vertices and m edges and vertices numbered 1, 2, ..., n. Next m OK, every trip has two positive integer u, v, said of a graph G edge (u, v). . Results output : Programming will be calculated by Euler circuit output to a file output.txt. If there is no Euler circuit, the output 1.)
- 2006-03-29 21:31:15下载
- 积分:1
-
hasse
通过Hasse matrices 和偏组合技术来进行化学计量研究的一个工具。(The Diversity/similarity measure based on Hasse matrices is a novel chemometric approach based on the partial ordering technique and the Hasse matrix)
- 2009-04-06 20:05:10下载
- 积分:1
-
books
使用eclipse开发的基于java和mysql的图书管理系统(Use eclipse-based library management system developed by java and mysql s)
- 2014-02-26 20:28:45下载
- 积分:1
-
fake shares of a software system to see a name and know that the stock is relate...
仿股票软件的一套系统
一看名字就知道了是和股票有关系-fake shares of a software system to see a name and know that the stock is related to
- 2022-01-28 00:16:30下载
- 积分:1
-
计算校验和
校验和算法描述:为保证网络上传输的数据的可靠性,在许多协议中都设置了校验和项,例如:IPv4、ICMPv4、IGMPV4、ICMPv6、UDP...
计算校验和
校验和算法描述:为保证网络上传输的数据的可靠性,在许多协议中都设置了校验和项,例如:IPv4、ICMPv4、IGMPV4、ICMPv6、UDP和TCP 等等。计算这些校验和的算法称为网际校验和算法,简单来说就是:把被校验的数据16位进行累加,然后取反码,若数据字节长度为奇数,则数据尾部补一个字节的0以凑成偶数。
由于从输入文件读入的数据不能直接满足计算校验和的条件,所以首先对从文件读入缓冲区的数据进行预处理,即读入缓冲区时忽略空格。由于累加是按16位进行的,所以每次从缓冲区中读出4个字符,并将字符转换成对应的16进制数字,如此依次累加,直至数据全部读完。
还有一种情况,即如果数据长度为奇数个字节,则需要判断,并补0累加。程序中利用的是缓冲区长度计数器i和当前读取到计数器j判断数据长度是否为奇数。即如果数据长度为偶数,则读完数据时当前读取到计数器j的值应与缓冲区长度i相等,而如果数据长度为奇数,则读完数据时,当前读取到计数器j>缓冲区长度i,此时需将缓冲区中剩余的两个字符读出,并补0,转换成相应16进制数以后参与累加。
当累加结束后,将累加和的16位以上数据位移下再进行一次累加,并对最后累加和取反即得所求校验和。
-calculated checksum checksum algorithm Description : To ensure the network transmission of data reliability, in many of the agreements are set up and calibration, for example : IPv4, ICMPv4, IGMPV4, ICMPv6. UDP and TCP so on. Calculating checksum algorithm called the Internet checksum algorithm, the simple answer is : as has been the calibration data for 16 cumulative, and then take the anti-code, if the data byte length of the odd, data will make up the tai
- 2022-01-26 06:39:03下载
- 积分:1
-
01_LogDemo
对日志引擎进行总结,对日志进行举例,怎么使用(Summarize the log engine, give an example of how to use it.)
- 2019-04-12 19:31:32下载
- 积分:1
-
zaser__scheme
图片随意移动 请移动图片! 根据自己需要,随意移动图片(The picture moves at will please move the picture! Move the picture at will according to your needs)
- 2018-10-09 22:36:24下载
- 积分:1
-
该实例用以获得系统安装的各协议栈信息,并通过树形控件直观的显示出来...
该实例用以获得系统安装的各协议栈信息,并通过树形控件直观的显示出来-example for the installation of the system on the protocol stack information, and through tree controls intuitive displayed
- 2022-07-22 18:13:38下载
- 积分:1
-
VC串口通讯
用C语言做一个串口通信的程序,使用串口1与串口2通讯,可以相互传输英文字符,波特率可以修改(Using C language to make a serial communication program, using serial port 1 to communicate with serial port 2, English characters can be transmitted to each other, and baud rate can be modified.)
- 2020-06-16 23:00:01下载
- 积分:1