-
VisualC++应用技巧与常见问题你问我答
为初学者提供,希望对大家有帮助!
分三部分传...
VisualC++应用技巧与常见问题你问我答
为初学者提供,希望对大家有帮助!
分三部分传-VisualC++ Application techniques and frequently asked questions you ask me to provide A for beginners, and they hope to have everyone help! Communication is divided into three parts
- 2022-05-10 21:50:14下载
- 积分:1
-
算法实现题2
算法实现题2-1 输油管道问题
« 问题描述:
某石油公司计划建造一条由东向西的主输油管道。该管道要穿过一个有n 口油井的油
田。从每口油井都要有一条输油管道沿最短路经(或南或北)与主管道相连。如果给定n口油
井的位置,即它们的x 坐标(东西向)和y 坐标(南北向),应如何确定主管道的最优位置,
即使各油井到主管道之间的输油管道长度总和最小的位置?证明可在线性时间内确定主管道
的最优位置。
« 编程任务:
给定n 口油井的位置,编程计算各油井到主管道之间的输油管道最小长度总和。
« 数据输入:
由文件input.txt 提供输入数据。文件的第1 行是油井数n,1£ n£ 10000。接下来n 行是
油井的位置,每行2个整数x和y,-10000£ x,y£ 10000。
« 结果输出:
程序运行结束时,将计算结果输出到文件output.txt 中。文件的第1 行中的数是油井到
主管道之间的输油管道最小长度总和。
输入文件示例 输出文件示例
input.txt output.txt
5
1 2
2 2
1 3
3 -2
3 3
6
- 2022-11-12 20:40:04下载
- 积分:1
-
WinSocket编程
winsocket有线网编程,套接字编程-winsocket programming
- 2022-08-13 21:06:54下载
- 积分:1
-
文件管理系统
此系统是对于多文件的管理,相当于分包管理文件,就是多文件夹管理。c#编写,支持拖拽等操作,方便文件的添加删除等操作。用树来管理,体现了树和list的使用,值得借鉴,树存在点击变图标等操作。
- 2022-06-18 01:29:28下载
- 积分:1
-
MiniDbg achieved the basic framework for user
MiniDbg 实现了了基本的用户态调试器框架-MiniDbg achieved the basic framework for user-mode debugger
- 2022-04-08 02:01:07下载
- 积分:1
-
熟悉智能卡操作的朋友都知道微软的PC/SC规范提供了一个智能卡读卡器的标准,我在此之上封装了这个PCSC的类,用以执行对智能卡的连接,以及执行符合GSM11.1...
熟悉智能卡操作的朋友都知道微软的PC/SC规范提供了一个智能卡读卡器的标准,我在此之上封装了这个PCSC的类,用以执行对智能卡的连接,以及执行符合GSM11.11的APDU指令,希望对大家有所帮助-familiar with the operation of the Smart Card friends all know Microsoft PC/SC standard provides a smart card reader standard accurate, and I would like to close the top of the PCSC category for the implementation of smart card connectivity, and the implementation of the Application Protocol Data Unit with GSM Directive, we hope to help
- 2022-02-12 04:12:14下载
- 积分:1
-
一种高算法
一个进程高度算法-a process highly Algorithm
- 2022-03-23 07:55:55下载
- 积分:1
-
You may read code because you have to
You may read code because you have to-to fix it, inspect it, or improve it. You may read code the way an engineer examines a machine--to discover what makes it tick. Or you may read code because you are scavenging--looking for material to reuse.
Code-reading requires its own set of skills, and the ability to determine which technique you use when is crucial. In this indispensable book, Diomidis Spinellis uses more than 600 real-world examples to show you how to identify good (and bad) code: how to read it, what to look for, and how to use this knowledge to improve your own code.
Fact: If you make a habit of reading good code, you will write better
- 2023-06-05 04:00:03下载
- 积分:1
-
Produced by the use of Visual Basic music player, the audio codec. Function is s...
利用Visual Basic制作的音乐播放器,实现音频的编解码。功能类似于千千静听,可以导入音乐文件夹,编辑lrc歌词等各项功能。很好用,附上源码,供大家参考学习。-Produced by the use of Visual Basic music player, the audio codec. Function is similar to TTPlayer, you can import the music folder, and edit the various functions such as lrc lyrics. Good use, accompanied by source code for your reference study.
- 2023-03-12 13:30:03下载
- 积分:1
-
接收电子邮件例子
接收电子邮件例子-receive e-mail examples
- 2022-09-05 08:35:02下载
- 积分:1