还是用VC++2005,或DEV C++吧
![](/skin/img/sigline.gif)
Go confidently in the directions of your dreams,live the life you have imagined!Just do it!
It is no use learning without thinking!
给个地址就OK了!
VC++6.0下,只有用形如#include <iostream.h>的形式包含头文件并且去掉using namespace std;这一句后友元函数才能访问私有成员,这据说是VC++6.0的一个BUG,但具体还不能确定.