- 博客(25)
- 资源 (11)
- 收藏
- 关注
原创 Accelerated C++:通过示例进行编程实践——练习解答(第16章)
16-0. Compile, execute, and test the programs in this chapter.16-1. Write a self-reproducing program. Such a program is one that does no input, and that, when run, writes a copy of its own source te
2014-11-06 00:21:44
1204
原创 Accelerated C++:通过示例进行编程实践——练习解答(第15章)
15-0. Compile, execute, and test the programs in this chapter.15-1. Test your system by writing a program that executesPicture p = // some initial starting picturePicture q = frame(p);Pictur
2014-11-05 21:14:49
1200
原创 Accelerated C++:通过示例进行编程实践——练习解答(第14章)
14-0. Compile, execute, and test the programs in this chapter.14-1. Implement the comparison operation that operates on Ptr.14-2. Implement and test the student grading program using Ptr objec
2014-11-03 21:12:09
1029
原创 Accelerated C++:通过示例进行编程实践——练习解答(第13章)
13-0. Compile, execute, and test the programs in this chapter.13-1. Annotate the Core and Grad constructors to write the constructor's name and argument list when the constructor is executed. For ex
2014-11-02 19:40:43
1357
原创 Accelerated C++:通过示例进行编程实践——练习解答(第12章)
12-0. Compile, execute, and test the programs in this chapter.12-1. Reimplement the Str class, but choose an implementation strategy that requires that the class manage the storage itself. For examp
2014-10-31 10:56:34
1492
原创 Accelerated C++:通过示例进行编程实践——练习解答(第11章)
11-0. Compile, execute, and test the programs in this chapter.11-1. The Student_info structure that we defined in Chapter 9 did not define a copy constructor, assignment operator, or destructor. Why
2014-10-28 15:19:02
2252
原创 Accelerated C++:通过示例进行编程实践——练习解答(第10章)
10-0. Compile, execute, and test the programs in this chapter.10-1. Rewrite the student-grading program from §9.6/166 to generate letter grades.10-2. Rewrite the median function from §8.1.1/140 so
2014-10-26 22:15:34
1593
原创 Accelerated C++:通过示例进行编程实践——练习解答(第9章)
9-0. Compile, execute, and test the programs in this chapter.9-1. Reimplement the Student_info class so that it calculates the finalgrade when reading the student's record, and stores that grade i
2014-10-25 12:12:57
1541
原创 Accelerated C++:通过示例进行编程实践——练习解答(第8章)
8-0. Compile, execute, and test the programs in this chapter.8-1. Note that the various analysis functions we wrote in §6.2/110 share the same behavior; they differ only in terms of the functions th
2014-10-25 01:22:38
1917
原创 Accelerated C++:通过示例进行编程实践——练习解答(第7章)
7-0. Compile, execute, and test the programs in this chapter.7-1. Extend the program from §7.2/124 to produce its output sorted by occurrence count. That is, the output should group all the words th
2014-10-22 15:26:57
2044
5
原创 Accelerated C++:通过示例进行编程实践——练习解答(第6章)
6-0. Compile, execute, and test the programs in this chapter.6-1. Reimplement the frame and hcat operations from §5.8.1/93 and §5.8.3/94 to use iterators.6-2. Write a program to test the
2014-10-20 23:58:41
1476
原创 Accelerated C++Exercises' Resolutions
这是一本非常经典的C++书籍,大牛刘伟鹏(http://blog.youkuaiyun.com/pongba/article/details/1930150)也在其博客对其给了很高的评价,豆瓣以及各大论坛都将此书列为C++经典书籍。但是大多数人在学习此书的时候只看正文内容二忽略了其课后的练习题,或者虽然注意到练习题,但是苦于没有配套的习题解答而在遇到问题时不知所措,于是我就产生了这么个想法,利用闲暇时间将课后练习code一遍,尽量的给出全面的解答和贴出所有代码,以供大家参考学习。但是由于个人的水平能力有限,给出的解法可
2014-10-15 20:16:31
1890
原创 Accelerated C++:通过示例进行编程实践——练习解答(第5章)
Accerated C++:Practical Programming by Example
2014-10-15 20:11:44
2527
3
原创 Accelerated C++:通过示例进行编程实践——练习解答(第4章)
4-0. Compile, execute, and test the programs in this chapter.4-1. We noted in §4.2.3/65 that it is essential that the argument types in a call to max match exactly. Will the following code work? I
2014-10-12 18:22:51
2453
2
原创 Accelerated C++:通过示例进行编程实践——练习解答(第3章)
3-0. Compile, execute, and test the programs in this chapter.3-1. Suppose we wish to find the median of a collection of values. Assume that we have read some of the values so far, and that we have
2014-10-09 23:31:29
1982
原创 Accelerated C++:通过示例进行编程实践——练习解答(第2章)
2-0. Compile and run the program presented in this chapter.2-1. Change the framing program so that it writes its greeting with no separation from the frame.2-2. Change the framing program so t
2014-10-06 23:12:01
2224
原创 Accelerated C++:通过示例进行编程实践——练习解答(第1章)
1-0. Compile, execute, and test the programs in this chapter.1-1. Are the following definitions valid? Why or why not?const std::string hello = "Hello";const std::string message = hello
2014-10-06 09:15:31
1928
原创 朴素贝叶斯(Bayes)分类器算法
朴素贝叶斯分类器是一个条件概率模型,是基于独立假设的,样本的各个属性特征是不相关的、相互独立的存在。显然朴素贝叶斯分类器假设各属性间彼此独立、并且服从某种概率分布(通常对连续属性等都假设服从高斯分布),这样就可以根据概率论和数理统计相关知识设计得到一贝叶斯分类器,然后根据训练数据来的特征分布来估计检验数据分类情况。我们假设属性集合F={F1,F2,......,Fn},类集合C={C1,C2,..
2014-01-23 23:36:42
1770
原创 矩阵LU分解算法分析
什么是矩阵LU的分解呢?顾名思义LU分解就是讲矩阵分解成下三角矩阵L和上三角矩阵U。可能一上来直接就讲解矩阵LU分解有点突然。那么在说这个之前呢我们先从线性代数方面回顾一下吧,其实说到矩阵我们头脑中自然而然的就会想到行列式,其实行列式和矩阵是有区别的,行列式表示一个数,而矩阵则表示的是一组向量。下面先了解下矩阵的一些基本的性质和运算,然后再看矩阵LU分解。1)对n阶矩阵A进行转置start
2014-01-23 19:39:47
16340
原创 概率算法
研究概率算法的意义在于我们在实际中有时会发现,随机选择结果比花费时间去做最优选择的结果会好的多;有时利用确定性算法求不出问题的解,而利用随机算法则总是可以求得问题的近似解,例如我们求f(x)=sin2((100)!πx),∫ 01f(x)dx的积分。概率算法也即随机决策算法,是基于概率论、统计学理论基础等,对同一输入实例的不同次执行会给出不同的解,即解的结果不可再现。所以可能会出现最坏的可能性,但
2014-01-22 15:44:50
3405
阿里巴巴的大数据实战总结大数据实战.zip
2020-08-16
bochs-2.6.2
2014-05-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人