//est-ce qu'une personne peut m'assurer la réponse à cette question?
//je n'ai pas de compilateur à ma disposition
Class Sanity has the structure
class Sanity { char *name[100]; ... };
We want to overload the brackets, [], operator in such
a way that the statements
Sanity s; s[12] = "Insanity";
make sense. Which function headers will NOT allow this?
(a)
char & Sanity::operator[](int n) {...}
(b)
char* & Sanity::operator[](int n = 0){...}
(c)
char* & Sanity::operator[](const int n){...}
(d)
char * Sanity::operator[](int n){...}
(e)
char* & Sanity::operator[](Sanity &s, int n){...}