Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Classes.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- class point
- {
- public:
- int x;
- x = 1;
- void show();
- }
- void point::show()
- {
- cout<<"x="<<x<<;
- }
- int main()
- {
- point p1,p2;
- p1.show();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement