Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- class student
- {
- public:
- student()
- {
- ID = 76048;
- height = 163;
- weight = 47.5;
- }
- void show()
- {
- cout << "ID=" << ID << endl;
- cout << "height=" << height << endl;
- cout << "weight=" << weight << endl;
- }
- private:
- int ID;
- double height, weight;
- };
- void main()
- {
- student me;
- me.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement