搜索资源列表
circlecutting
- 集装箱的装箱问题 给定一个集装箱,其长为L,宽为W和高为H,现有一批圆柱形木材,每根木材的长均为L,但是半径不同,设第i根木材半径为ri。问如何装箱,使得集装箱的空间利用率最高? 本程序要求用贪心算法解决: 贪心算法总是作出在当前看来是最好的选择。也就是说,不从整体最优上加以考虑,它所做出的仅是在某种意义上的局部最优解。 -problem given a container, its long-L, width W and H for high, the existing bat
test1
- map映照容器的元素数据由一个键值和一个映照数据组成的,他也是采用红黑树实现,插入元素的键值不允许重复,默认从小到大排-Map of the container element data from the shine upon a key value and a mapping data of composition, he is also using red and black tree realization, the elements of the key value not allowe
foreach
- 利用boost::foreach组件,可以使C++像python,Lua等脚本语言样,能够以简洁的方式遍历任意容器!-Using boost:: foreach component that allows C++ like python, Lua scr ipting languages such as samples, simple way to be able to traverse any container!
mapForPhoneBook
- 采用map容器类实现的一个电话本功能。编程环境:VS2010-Map container class implemented by a phone call this function. Programming environment: VS2010
test2
- vector向量容器的介绍, 不指定元素个数 定义一个用来储存10个double类型的元素的向量容器 下标:0~9,每个元素的初值0.0;-Vector vector of the container is introduced, the introduction of vector vector containers, not specified number of elements Define a used to store 10 double type of elements
saoleibeta
- 扫雷小游戏 要求: 用VS2010控制台程序完成,键盘输入要点开的格子和要排的雷的格子。 拥有普通游戏的控制流程:开始游戏、重新开始、退出游戏、死亡成功后的提示及操作等;拥有游戏最基本的一些文字提示,拥有基本的一些错误判断。 要求整个工程全部用C++代码完成,不允许出现C风格代码(如用string代替char*、用容器代替数组、类等)。-Minesweeping game requirements: VS2010 console program completed, keyboa
stl
- C++ 标准程序库学习,stl容器示例的一些列代码-C++ standard library learning, stl container code sample some of the columns
MarMatch
- 中兴捧月复赛-数字婚姻配对实验的实现,采用C++,vector和map容器实现算法-ZTE holding rematch month- Digital marital paired experiments achieved using C++, vector algorithm and map container
Cellular_Automate
- A Cellular Automate Simulator which is implemented with the use of a STL-Container and with the use of an array. Good for educational purposes, to learn how to use the copy- & move semantics, as well as the R- and L-Values in C++.
wav2raw
- Saves the data chunk content of RIFF Wave audio file. Useful to convert raw MP3 music WAV file container. Platform independent. Works on big-endian as well.-Saves the data chunk content of RIFF Wave audio file. Useful to convert raw MP3 music WA
StringSort
- 采用vector容器来进行字符串变量保存,同时根据排序规则实现字符串的排序。-Using vector container to save the string variable, while achieving the sort strings based on the collation.
