Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #pragma once
  2. #include <string>
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. class Proizvod {
  7. private:
  8.     string naziv;
  9.     double cena;
  10.     int brKom;
  11. public:
  12.     Proizvod();
  13.     Proizvod(string n, double c, int b);
  14.     Proizvod(const Proizvod& p);
  15.     Proizvod& operator--();
  16.     Proizvod& operator--(int);
  17.     bool operator<(Proizvod& p);
  18.     friend istream& operator>>(istream& in, Proizvod& p);
  19.     friend ostream& operator<<(ostream& out, Proizvod& p);
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement