理解声明 [英] Understanding the Statement

查看:122
本文介绍了理解声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C ++的新手。所以任何人都可以向我解释以下声明在做什么:



I am very new to C++. So anyone can explain me what the below statement is doing:

H_Hash << set_H(COL1) << "Test_OP" << _TempTotals[i] << '\n';

推荐答案

嗯,这取决于对象的类型 H_Hash ,因为,你知道,在 C ++ 您可以重新定义运算符(例如<< )。

它还取决于 set_H 定义(它可能是一个简单的函数返回一个字符串 - 或者其他什么 - 或者一个输出操纵器实例)。 br />
那就是你需要向我们展示更多代码才能获得更好的帮助。
Well, it depends on the type of the object H_Hash, because, you know, in C++ you may redefine the operators (like <<).
It also depends on the set_H definition (it could be a simple function returning a string - or whatever - or an output manipulator instance).
That is you need to show us more code in order to get better help.


这篇关于理解声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆