上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 这个是STL的堆栈适配器练习看一下它给的描述吧DescriptionThis assessment tests your ability to use the STL stack adapter, the STL vector container, and the STL find algorithm to solve a problem. You are asked to finish the implementation of a program that simulates a multiple-aisle parking lot. When cars are parked bumper 阅读全文
posted @ 2013-05-06 17:26 强子~Developer 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 欢迎访问我的博客,接下来就是第十一周的Optional Exercise 5了这个题目是要求我们学会排序算法--------选择排序和快速排序,具体算法也不用自己写,只是看就可以了,自己要写的真的不多,比较简单题目是根据很多的数据排序来反映选择排序与快速排序的时间复杂度的不同DescriptionThe program to be completed for this assessment demonstrates the runtime differences between a stable and non-stable sort. The stable sort examined in 阅读全文
posted @ 2013-05-06 16:58 强子~Developer 阅读(720) 评论(1) 推荐(1) 编辑
摘要: 这个拼写检查的程序原理上没有什么难度却看不大懂这个hashset,求大神指点hashset.h// template hash set class#ifndef _HASHSET_H_#define _HASHSET_H_#include <iostream>#include <vector>#include <algorithm>#include <stdexcept>using namespace std;// we do not compute prime numbers but use a table insteadstatic cons 阅读全文
posted @ 2013-05-05 12:33 强子~Developer 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 这题还是接着Exercise1和Exercise2来的,没什么难的,照着它给的头文件补充好函数就可以了本题给了两个头文件 Category.h和Categories.h看一下题目给的提示Class CategoryClass Category models a category. This class contains private data members for the category name, identification number, and parent identification number. A vector<int> stores the unique 阅读全文
posted @ 2013-05-03 14:43 强子~Developer 阅读(575) 评论(0) 推荐(0) 编辑
摘要: STL = Standard Template Library,标准模板库,STL的目的是标准化组件,这样就不用重新开发,可以使用现成的组件。STL现在是C++的一部分,因此不用额外安装什么。在C++标准中,STL被组织为下面的13个头文件:<algorithm>、<deque>、<functional>、<iterator>、<vector>、<list>、<map>、<memory>、<numeric>、<queue>、<set>、<stack>和 阅读全文
posted @ 2013-04-22 11:48 强子~Developer 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 这个题文件给了一大堆,其实最关键的只有两个Listing.h及Group.hclass Listing and class Group题目总的来说是比较好的,可惜我运行不成功,所以在此只好把要做的事情做好先看Class ListingClass Listing models a collection of advertisements. This class contains a private data member of type vector<Advertisement*>. This vector stores pointers to Advertisement objec 阅读全文
posted @ 2013-04-21 14:14 强子~Developer 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 这个题目是一个评估感染的问题主要用到STL的Vector和分治法思想及迭代背景就不管了看一下描述DescriptionThis assignment asks you to finish the implementation of a program that assesses the level of infection in a tissue sample. You are given data representing a rectangular tissue sample, overlaid with a grid. Certain portions of the tissue are 阅读全文
posted @ 2013-04-21 13:50 强子~Developer 阅读(998) 评论(0) 推荐(0) 编辑
摘要: 有过对STL的栈练习,当然就少不了队列了看一下题目总体要求BackgroundFrom store-and-forward queues in network routers to the facilitation of breadth-first searches in graph algorithms, queues have many important applications in Computer Science and Information Technology. One such application can be found in a policy used by net 阅读全文
posted @ 2013-04-18 22:43 强子~Developer 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 这个题主要考察对继承的掌握还有动态存储和异常处理按照步骤一步步来做这个题Extract the archive to retrieve the files needed to complete this assessment我们得到LinkedList.h,我还给了相应的注释#ifndef _LINKEDLIST_H_#define _LINKEDLIST_H_#include <stdexcept>/* * 作者:白强 * 日期:2013/4/18 * 这是题目给的一个数据结构实现 * 它可以在链尾或链头插入和删除元素 * virtual void push_front(T); 阅读全文
posted @ 2013-04-18 00:59 强子~Developer 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 1.先来看一下题目要求 To complete this assessment, you will need to design and implement class Car and implement the parking-lot simulator program. To begin, verify the files needed for this assessment.Extract the archive to retrieve the files needed to complete this assessment.Following is an ordered list .. 阅读全文
posted @ 2013-04-17 23:28 强子~Developer 阅读(1277) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页