Guest User

Untitled

a guest
Jan 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. test.h
  2. #ifndef _test_h_
  3. #define _test_h_
  4.  
  5. class test
  6. {
  7. public:
  8. test ();
  9. void show();
  10.  
  11. private:
  12.  
  13. };
  14.  
  15. #endif
  16.  
  17. test.cpp
  18. #include "test.h"
  19. #include
  20.  
  21.  
  22. test::test(){}
  23.  
  24. void test::show(){
  25. std::cout
  26.  
  27.  
  28. main.cpp
  29. #include "test.h"
  30.  
  31.  
  32. int main (int argc, char const* argv[])
  33. {
  34. test t();
  35. t.show();
  36. return 0;
  37. }
  38.  
  39. main.cpp
  40. #include "test.h"
  41.  
  42.  
  43. int main (int argc, char const* argv[])
  44. {
  45. test t();
  46. t.show();
  47. return 0;
  48. }
Add Comment
Please, Sign In to add comment