Advertisement
STANAANDREY

str con

Aug 26th, 2019
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. struct student
  5. {
  6.     int note;
  7.     student(int note)
  8.     {
  9.         cout << "new stud" << endl;
  10.         this -> note = note;
  11.     }
  12. };
  13.  
  14. int main()
  15. {
  16.     student s(2);
  17.     cout<<s.note;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement