summaryrefslogtreecommitdiff
path: root/2p40.cpp
blob: 22475297fe1eca21b9a9a6b482614af50947854c (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
#include <iostream>


/*
 *
 * 2.40
 * 
 *
 */

struct SalesData {
	std::string BookNo;
	unsigned int UnitsSold = 0;
	double Revenue = 0.0;
};

int main () {

	struct SalesData Book;
	Book.BookNo = "this is the BookNo";
	Book.UnitsSold = 243;
	Book.Revenue = 3294;
	std::cout << Book.BookNo << "\n"
			  << Book.UnitsSold << "\n"
			  << Book.Revenue
			  << std::endl;
	return 0;
}