-
网络流量显示
这是一个简单的小程序,vc6.0平台下能运行,可以获取当前网络流量信息,网速,并用图表形式显示
- 2022-05-26 07:33:39下载
- 积分:1
-
算法实现题2
算法实现题2-9 排列的字典序问题
« 问题描述:
n个元素{1,2, , n }有n!个不同的排列。将这n!个排列按字典序排列,并编号为0,1,…,
n!-1。每个排列的编号为其字典序值。例如,当n=3时,6 个不同排列的字典序值如下:
字典序值 0 1 2 3 4 5
排列 123 132 213 231 312 321
« 编程任务:
给定n 以及n 个元素{1,2, , n }的一个排列,计算出这个排列的字典序值,以及按字
典序排列的下一个排列。
« 数据输入:
由文件input.txt提供输入数据。文件的第1 行是元素个数n。接下来的1 行是n个元素
{1,2, , n }的一个排列。
« 结果输出:
程序运行结束时,将计算出的排列的字典序值和按字典序排列的下一个排列输出到文件
output.txt中。文件的第一行是字典序值,第2行是按字典序排列的下一个排列。
输入文件示例 输出文件示例
input.txt output.txt
8
2 6 4 5 8 1 7 3
8227
2 6 4 5 8 3 1 7
- 2022-02-12 05:10:54下载
- 积分:1
-
本程序是一个例子,一个定时器计数从20使用SDL定时器功能。
This program is a example of a timer counting down from 20 using the SDL timer function
- 2022-03-23 15:18:37下载
- 积分:1
-
VC下的时钟显示程序
VC下的时钟显示程序-VC clock display program
- 2022-08-20 10:30:18下载
- 积分:1
-
一个屏幕回传的客户端
一个屏幕回传的客户端-a screen back to the client-
- 2022-10-16 07:25:03下载
- 积分:1
-
这是我学C++大学教程时写的一个例子
猜数字的游戏
个人感觉《C++大学教程》这本书很适合c++初学者,可以学到很多软件及c++知识...
这是我学C++大学教程时写的一个例子
猜数字的游戏
个人感觉《C++大学教程》这本书很适合c++初学者,可以学到很多软件及c++知识-This is my school C++ University Guide wrote an example of personal feeling猜数字game
- 2022-08-06 06:36:54下载
- 积分:1
-
红外循迹,智能识别跑道,等等,还可以拐弯,走井字湾
红外循迹,智能识别跑道,等等,还可以拐弯,走井字湾-Infrared tracking, identification reports
- 2022-08-22 10:38:32下载
- 积分:1
-
VC++ access to hard disk size, including the size of the total space, free space...
VC++获取硬盘大小,包括总空间大小,自由空间大小,已用空间大小。-VC++ access to hard disk size, including the size of the total space, free space size, the size of space has been used.
- 2022-11-08 21:30:02下载
- 积分:1
-
lease read your package and describe it at least 40 bytes in English.
System wi...
lease read your package and describe it at least 40 bytes in English.
System will automatically delete the directory of debug and release, so please do not put files on these two directory.
- 2022-01-21 05:15:11下载
- 积分:1
-
我玩的一个游戏嘛
我玩的一个游戏嘛-I play a game!
- 2022-10-27 12:00:04下载
- 积分:1