Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://docs.google.com/document/d/1VgioCSiUkKCYCTlrQI2lz4tTkeADQXLvGQUJLGzTUqo/edit?usp=sharing
- #include <iostream>
- using namespace std;
- struct student {
- int g;
- student () {} // empty constructor
- student(int G) { // paramter constructor(arguments)
- g = G;
- }
- };
- int main() {
- student S;
- cin >> S.g;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement