Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3. #include <vector>
  4. #include "c.h"
  5.  
  6. using namespace std;
  7.  
  8. C createObject() {
  9. return { C() };
  10. }
  11.  
  12. int main() {
  13.  
  14. /* // 0
  15. {
  16. C obj1;
  17. }
  18. {
  19. C obj2;
  20. }
  21. */
  22.  
  23. /* // 1
  24. C obj1;
  25. C obj2(obj1);
  26. */
  27.  
  28. /* // 2
  29. C obj2 = move(createObject());
  30. */
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement