Skip to content

Commit

Permalink
refactor 14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pezy committed Mar 19, 2015
1 parent cbf4d17 commit 33828f0
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 433 deletions.
17 changes: 16 additions & 1 deletion ch14/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
Such as `Book`

[hpp](ex14_05.h) | [cpp](ex14_05.cpp)
[hpp](ex14_05.h) | [cpp](ex14_05.cpp) | [test](ex14_05_TEST.cpp)

## Exercise 14.6:
>Define an output operator for your `Sales_data` class.
Expand Down Expand Up @@ -115,3 +115,18 @@ no input check. nothing happend.
>Define an input operator for the class you used in exercise 7.40 from 7.5.1 (p. 291). Be sure the operator handles input errors.
see [Exercise 14.5](#Exercise 14.5)

## Exercise 14.13:
>Which other arithmetic operators (Table 4.1 (p. 139)), if any, do you think Sales_data ought to support? Define any you think the class should include.
no others.

## Exercise 14.14:
>Why do you think it is more efficient to define `operator+` to call `operator+=` rather than the other way around?
Discussing on [SO](http://stackoverflow.com/questions/21071167/why-is-it-more-efficient-to-define-operator-to-call-operator-rather-than-the).

## Exercise 14.15:
>Should the class you chose for exercise 7.40 from 7.5.1 (p. 291) define any of the arithmetic operators? If so, implement them. If not, explain why not.
[hpp](ex14_15.h) | [cpp](ex14_15.cpp) | [Test](ex14_15_TEST.cpp)
130 changes: 0 additions & 130 deletions ch14/ex14.13.14.15/Sales_data.cc

This file was deleted.

102 changes: 0 additions & 102 deletions ch14/ex14.13.14.15/Sales_data.h

This file was deleted.

43 changes: 0 additions & 43 deletions ch14/ex14.13.14.15/block.cpp

This file was deleted.

80 changes: 0 additions & 80 deletions ch14/ex14.13.14.15/block.h

This file was deleted.

Loading

0 comments on commit 33828f0

Please sign in to comment.