Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <list>
- #include <iterator>
- #include <conio.h>
- #include <string>
- #include <exception>
- #include <fstream>
- #define _CRT_SECURE_NO_WARNING
- using namespace std;
- class a {
- int as;
- public:
- a(int b) {
- cout << "constructor detected" << endl;
- as = b;
- }
- a(a &b) {
- cout << "Constructor detected" << endl;
- }
- };
- int test(a test) {
- return 2;
- }
- int main(){
- a b(8);
- test(b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment