To tylko jedna z 2 stron tej notatki. Zaloguj się aby zobaczyć ten dokument.Zobacz
całą notatkę
Podgląd dokumentu
Fragment notatki:
References reference to type T: T& it is a pointer that looks like a variable int i=7, // variable int & iref=i; // reference must be initialized // i.e. associated with something (i) iref++; // now i==8 may be misleading avoid functions that alter its arguments use it when you actually need it - for saving memory - for saving time - for returning objects to be further processed use const references
... zobacz całą notatkę
Komentarze użytkowników (0)