Advertisement
josiftepe

Untitled

Mar 25th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1.  // https://docs.google.com/document/d/1VgioCSiUkKCYCTlrQI2lz4tTkeADQXLvGQUJLGzTUqo/edit?usp=sharing
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. struct student {
  8.  int g;
  9.   student () {} // empty constructor
  10.   student(int G) { // paramter constructor(arguments)
  11.     g = G;
  12.   }
  13.  
  14. };
  15. int main() {
  16.   student S;
  17.   cin >> S.g;
  18.  
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement