英国tier4 签证:帮我翻译几句话

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/28 03:59:32
1. For example, you may usually want to override the Dump function of CObject provide debugging output for the contents of you class.
2. When deriving a class from CObject, you have the option to override the Dump member function and write a textual representation of the object’s member variables to a dump context which is similar to an I/O stream. Like an I/O stream, you can use the insertion (<<) operator to send data to a CDumpContext.

第一句有语法错误吧,呵呵,是不是应该是providing?
1。例如,你可能会经常想要重载CObject的Dump函数,这个函数可以为你的类提供调试输出。
2。当从CObject派生一个类时,你决定重载Dump成员函数并且将一个对象的成员变量的文本表达式写到一个类似于出入输出流的dump context中去。像一个输入输出流,你可以使用输入操作符将数据发送给CDumpContext。