Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- class test {
- public:
- int x;
- test(int i);
- };
- test::test(int i) {
- x = i;
- }
- int main()
- {
- test ob1(9);
- cout << ob1.x << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment