[求助]函数问题
我现在有一个Student类
有如下成员函数和友元函数
double Student::operator[](int i)const
ostream& operator<<(ostream& os,const Student& stu)
.............
然后
Student ada[3];
cout<<ada[i];//这步是调用了[],还是<<?
请指教
我现在有一个Student类
有如下成员函数和友元函数
double Student::operator[](int i)const
ostream& operator<<(ostream& os,const Student& stu)
.............
然后
Student ada[3];
cout<<ada[i];//这步是调用了[],还是<<?
请指教
2006-08-27 13:21

2006-08-27 13:27
2006-08-27 13:32

2006-08-27 13:34
2006-08-27 13:40

2006-08-27 13:42

2006-08-27 13:44
2006-08-27 14:25
2006-08-27 14:27
2006-08-27 14:30