正在加载图片...
C++程序设计 湖南大学 杜四春、银红霞 cIn 在 Istream输入流类中定义有对右移操作符>重载 的一组公用成员函数,函数的具体声明格式为: istream& operator>>(简单类型标识符&); 简单类型标识符可以为char, signed char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, float, double, long double,char*, signed char*, unsigned char*之中的 任何一种,对于每一种类型都对应着一个右移操作符 重载函数。由于右移操作符重载用于给变量输入数据 的操作,所以又称为提取操作符,即从流中提取出数 据赋给变量C++程序设计 湖南大学 杜四春、银红霞 2. cin 在istream输入流类中定义有对右移操作符>>重载 的一组公用成员函数,函数的具体声明格式为: istream& operator>>(简单类型标识符&); 简单类型标识符可以为char, signed char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, float, double, long double, char*, signed char*, unsigned char*之中的 任何一种,对于每一种类型都对应着一个右移操作符 重载函数。由于右移操作符重载用于给变量输入数据 的操作,所以又称为提取操作符,即从流中提取出数 据赋给变量
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有