Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- class Koordinati{
- private:
- int x;
- int y;
- int z;
- public:
- Koordinati(int x, int y, int z){
- x=0;
- y=0;
- z=0;
- }
- Koordinati(int x, int y, int z){
- this->x=x;
- this->y=y;
- this->z=z;
- }
- //copy constructor
- Koordinati(Koordinati &k){
- x=k.x;
- y=k.y;
- z=k.z;
- }
- friend ostream &operator<<(ostream &out, Koordinati &ko){
- out<<"("<<ko.x<<", "<<ko.y<<", "<<ko.z<<")"<<endl;
- return out;
- }
- Koordinati& operator+=(Koordinati &novi){
- //ne razbiram pod-fiksna forma :) s
- }
- ~Koordinati(){}
- }
- int main(){
- return 0;
- }
Add Comment
Please, Sign In to add comment