Update example1.cpp
This commit is contained in:
parent
40c4cdaeb3
commit
36c8d3bfb0
@ -9,7 +9,7 @@ class X
|
||||
return i; };
|
||||
int operator[] (int i)
|
||||
{ cout << "X::operator[" << i << "]" << endl; return i; };
|
||||
int operator[] (char * cp)
|
||||
int operator[] (const char * cp)
|
||||
{ cout << "X::operator[" << cp << "]" << endl; return 0; };
|
||||
};
|
||||
int main (void)
|
||||
|
Loading…
Reference in New Issue
Block a user