📄 ch14_friendfunction.cpp
字号:
//Friend Function Illustration
#include <iostream>
#include "classIllusFriend.h"
using namespace std;
int main()
{
classIllusFriend aObject; //Line 9
aObject.setx(32); //Line 10
cout << "Line 11: aObject.x: "; //Line 11
aObject.print(); //Line 12
cout << endl; //Line 13
cout << "*~*~*~*~*~* Testing Friend Function "
<< "two *~*~*~*~*~*" << endl << endl; //Line 14
two(aObject); //Line 15
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -