summaryrefslogtreecommitdiff
path: root/7p38.cpp
blob: 21a6a8e1dfe74e93e2d638dd597e14f84846e286 (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
#include <iostream>

/*
 *
 * 7.38
 *
 * Not exactly 100% sure what i was supposed to do but here it is.
 */

class ch7e738 {
public:
	ch7e738(std::istream& in) {
		in >> i;
	}
	
	std::ostream& printmemb(std::ostream& pmcout) {
		pmcout << i;
		return pmcout;
	}
	
private:
	int i;
};

int main () {

	ch7e738 s(std::cin);
	s.printmemb(std::cout) << std::endl;
	return 0;
}