Something
public text v1 · immutable#include <iostream>
#include <time.h>
using std::cout;
using std::endl;
class screamer
{
public:
screamer()
{
cout << "creating a" << endl;
}
screamer(const screamer &a)
{
cout << "copy constructor" << endl;
}
void foo(screamer a)
{
cout << "foo" << endl;
}
};
int main()
{
screamer a, b;
a.foo(b);
return 0;
}