[ ijurisic @ 18.08.2007. 17:11 ] @
Imam ovakav kod i očekivao sam da će proći ali mi puca kada se treba upisati string ime=u_ime, mada su obe varijable istog tipa string. Citat: class Cstudent { public: Cstudent(string,string); ~Cstudent(); void Novi(Cstudent * ); void Ispis(Cstudent * ); double Prosijek_ocjena(Cstudent *); bool Brisi(Cstudent * ,int ); int maticni_broj; string Ime; string Prezime; double Prosjek; Cstudent *next; }; Cstudent::Cstudent(string u_ime,string u_prezime){ Ime = u_ime; Prezime = u_prezime; } void main(){ Cstudent student("Pero","Matic"); } |