插入和提取运算符的重载

所属分类:Windows编程
开发工具:Visual C++
文件大小:214KB
下载次数:10
上传日期:2004-09-21 10:56:25
上 传 者yoyo_aoka
说明:  在C++中运算符是一种特殊的函数名,其地位与函数一样,因此也可以定义成类的友元函数,为了便于对象的使用,利用类成员函数(运算符)的重载和友元的特性,为类的数据重载定义插入(<<)和提取(>>)运算符,以便于该类的对象使用cin和cout进行数据的输入和输出.
(in C Operators is a special function name, its status and function, it can also be defined as a category of Friends yuan function, in order to facilitate the use of objects, the use of class member function (Operators) and the Friends of the heavy yuan features, such as heavy-duty data definition insertion (lt; Lt ;) and extraction (gt; gt;) Operators, to the use of such targets and cin court for data input and output.)

文件列表:
121 (0, 2004-05-10)
121\插入和提取运算符的重载.txt (237, 2004-05-10)
121\插入和提取运算符的重载.dsp (3595, 2004-05-10)
121\Debug (0, 2004-05-10)
121\插入和提取运算符的重载.ncb (33792, 2004-05-10)
121\插入和提取运算符的重载.plg (278, 2004-05-10)
121\插入和提取运算符的重载.cpp (674, 2004-05-10)
121\插入和提取运算符的重载.opt (48640, 2004-05-10)
121\插入和提取运算符的重载.dsw (569, 2004-05-10)

近期下载者

相关文件


收藏者