forked from pezy/CppPrimer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex14_24_TEST.cpp
44 lines (31 loc) · 1021 Bytes
/
ex14_24_TEST.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/***************************************************************************
* @file main.cpp
* @author Alan.W
* @date 14 Jan 2014
* @remark This code is for the exercises from C++ Primer 5th Edition
* @note
***************************************************************************/
//!
//! Exercise 14.20:
//! Define the addition and compound-assignment operators for your Sales_data class.
//!
//! Exercise 14.22:
//! Define a version of the assignment operator that can assign a string representing
//! an ISBN to a Sales_data.
//!
//! Exercise 14.23:
//! Define an initializer_list assignment operator for your version of the StrVec
//! class.
//!
//! Exercise 14.24:
//! Decide whether the class you used in exercise 7.40 from § 7.5.1 (p. 291) needs a
//! copy- and move-assignment operator. If so, define those operators.
//!
#include "ex14_24.h"
#include <iostream>
int main()
{
Date lhs(9999999), rhs(1);
std::cout << (lhs -= 12000) <<"\n";
return 0;
}