CCCPaste

Untitled

#include 
using namespace std;


class Student {
private:
    char ime[50];
    char prezime[50];
    int godini;
public:
    Student() {}
    Student(char *i, char *p, int g) {
        strcpy(ime, i);
        strcpy(prezime, p);
        godini = g;
    }
    const char* get_ime() {
        return ime;
    }
    const char* get_prezime() {
        return prezime;
    }
    int get_godini() {
        return godini;
    }
};
int main() {
    Student s("a", "a", 10);
    Student s2 = s;
    cout << s.get_ime() << " " << s.get_prezime() << " " << s.get_godini() << endl;
    
    return 0;
}