Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "Gitara.h"
- #define _DEBUG 1
- using namespace std;
- int main() {
- Gitara x;
- Gitara b(x); //tworze nowa gitare b i kopiuje ją z a
- Gitara c = x; // tworze nową gitare c i kopiuje ją z a
- Gitara s;
- s = b;
- Gryf y;
- Gryf e = y;
- Pudlo z;
- Pudlo f(z);
- Struny q;
- Struny i = q;
- cout << Gitara::zwrocIloscGitar();
- try{
- x+b;
- }catch(exception x){
- cout<<"wyjatek\n";
- }
- return 0;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement