Guest User

Untitled

a guest
Jan 21st, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. class test {
  7. public:
  8. int x;
  9. test(int i);
  10. };
  11.  
  12. test::test(int i) {
  13. x = i;
  14. }
  15.  
  16. int main()
  17. {
  18. test ob1(9);
  19. cout << ob1.x << endl;
  20. return 0;
  21. }
Add Comment
Please, Sign In to add comment