Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Ucenik {
- private:
- char * ime;
- float prosek;
- int godini;
- public:
- Ucenik() {}
- Ucenik(char * _ime, float _prosek, int _godini) {
- prosek = _prosek;
- godini = _godini;
- ime = new char[strlen(_ime)];
- strcpy(ime, _ime);
- }
- Ucenik(const Ucenik & tmp) {
- prosek = tmp.prosek;
- godini = tmp.godini;
- ime = new char[strlen(tmp.ime)];
- strcpy(ime, tmp.ime);
- }
- };
- int main() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement