[ create a new paste ] login | about

Link: http://codepad.org/ay40CTGz    [ raw code | output | fork ]

C++, pasted on Mar 16:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>

class Hoge
{
public:
	Hoge(void)
	{
		std::cout << "Hoge::Hoge(void)" << std::endl;
	}
	Hoge(const Hoge &)
	{
		std::cout << "Hoge::Hoge(const Hoge &)" << std::endl;
	}
};

int main(void)
{
	Hoge h = Hoge();

	return 0;
}


Output:
1
2
Hoge::Hoge(void)
Hoge::Hoge(const Hoge &)


Create a new paste based on this one


Comments: