Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.cpp
- #include <iostream>
- #include "box.h"
- using namespace std;
- CBox m;
- main(){
- CBox* m = new CBox();
- m->rysujbox();
- }
- box.h
- #ifndef BOX_H
- #define BOX_H
- class CBox{
- private:
- public:
- CBox();
- ~CBox();
- void rysujbox();
- };
- #endif
- box.cpp
- #include "box.h"
- #include <iostream>
- using namespace std;
- CBox::CBox(){}
- CBox::~CBox(){}
- void CBox::rysujbox(){ cout << "xx00xx" << endl; cout << "xxxxxx" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement