blob: 6a4613173159e99395b2de3850df3501d51f845c (
plain)
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
|
/*
*
* 7.37
*
*
*/
/*
class Sales_data {
public:
// defines the default constructor as well as one that takes a string argument
Sales_data(std::string s = ""): bookNo(s) { }
// remaining constructors unchanged
Sales_data(std::string s, unsigned cnt, double rev):
bookNo(s), units_sold(cnt), revenue(rev*cnt) { }
Sales_data(std::istream &is) { read(is, *this); }
// remaining members as before
};
*/
/*
Sales_data first_item(cin); // Sales_data(std::istream &is) { read(is, *this); }
int main() {
Sales_data next; // Sales_data(std::string s = ""): bookNo(s) { }
Sales_data last("9-999-99999-9"); // Sales_data(std::string s = ""): bookNo(s) { }
}
*/
int main () {
return 0;
}
|