Advertisement
mario_mos

attributs

Aug 29th, 2023 (edited)
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #ifndef TEST_H
  2. #define TEST_H
  3.  
  4.  
  5. class test
  6. {
  7. public:
  8.     test();
  9.     int m_a1;
  10.     int m_a2;
  11.     int m_a3;
  12.     int m_a4;
  13. };
  14.  
  15. #endif // TEST_H
  16.  
  17. #include "test.h"
  18.  
  19. test::test(): m_a1(10), m_a2(20), m_a3(30), m_a4(40)
  20. {}
  21.  
  22. #include <iostream>
  23.  
  24. using namespace std;
  25.  
  26. int main()
  27. {
  28.  
  29.     return 0;
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement