Advertisement
Guest User

Untitled

a guest
Sep 12th, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. // Classes.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. class point
  7. {
  8. public:
  9. int x;
  10.  
  11. x = 1;
  12. void show();
  13. }
  14. void point::show()
  15. {
  16. cout<<"x="<<x<<;
  17. }
  18.  
  19. int main()
  20. {
  21. point p1,p2;
  22. p1.show();
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement