Write a version of the transaction-processing program from § 1.6 (p. 24) using the Sales_data class you defined for the exercises in § 2.6.1 (p. 72).
§ 1.6 (p. 24)
Exercise 1.25
Using the Sales_item.h header from the Web site, compile and execute the bookstore program presented in this section.
§ 2.6.1 (p. 72)
Exercise 2.36
In the following code, determine the type of each variable and the value each variable has when the code finishes:
int a = 3, b = 4;decltype(a) c = a;decltype((b)) d = a;++c;++d;
Exercise 2.37
Assignment is an example of an expression that yields a reference type. The type is a reference to the type of the left-hand operand. That is, if i is an int, then the type of the expression i = x is int&. Using that knowledge, determine the type and value of each variable in this code:
int a = 3, b = 4;decltype(a) c = a;decltype(a = b) d = a;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.