Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. main.cpp
  2.  
  3.  
  4. #include <iostream>
  5. #include "box.h"
  6.  
  7. using namespace std;
  8. CBox m;
  9.  
  10. main(){
  11. CBox* m = new CBox();
  12. m->rysujbox();
  13. }
  14.  
  15. box.h
  16.  
  17. #ifndef BOX_H
  18. #define BOX_H
  19.  
  20. class CBox{
  21. private:
  22. public:
  23. CBox();
  24. ~CBox();
  25. void rysujbox();
  26. };
  27. #endif
  28.  
  29. box.cpp
  30. #include "box.h"
  31. #include <iostream>
  32.  
  33. using namespace std;
  34.  
  35. CBox::CBox(){}
  36. CBox::~CBox(){}
  37. void CBox::rysujbox(){ cout << "xx00xx" << endl; cout << "xxxxxx" << endl;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement