Skip to content

Instantly share code, notes, and snippets.

@hernad
Created November 29, 2010 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hernad/720254 to your computer and use it in GitHub Desktop.
Save hernad/720254 to your computer and use it in GitHub Desktop.
skeleton
clas Student {
private:
int *_brOcjena;
int *_ocjene;
const int _brIndeksa;
public:
Student(br_ind int);
friend ostream& operator<< (ostream& strm, const Student& s1);
}
Student::Student(int br_ind) : _brIndeksa(br_ind)
{
cout << "DEBUG: konstruktor -1";
}
ostream& operator<< (ostream& strm, const Student& s1) {
strm << "not implemented";
return ostrm;
}
int main() {
cout << "hello world" << endl;
Student s_1(2792);
cout << s_1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment