这段代码是什么意思? [英] What does this code mean?
问题描述
CL_ConsoleWindow控制台(控制台);
这是一些c ++成语还是宏?我知道如果没有
标题你就无法告诉我,但我想快速解释一下。
CL_ConsoleWindow console("Console");
Is this some c++ idiom or a macro? I know you can''t tell without the
headers, but I want a quick explanation.
推荐答案
Sier写道:
Sier wrote:
CL_ConsoleWindow控制台(控制台);
这是一些c ++成语还是宏?我知道没有
标题你就无法告诉我,但我想快速解释一下。
CL_ConsoleWindow console("Console");
Is this some c++ idiom or a macro? I know you can''t tell without the
headers, but I want a quick explanation.
看起来它正在声明一个名为'的对象'console''的类型为
''CL_ConsoleWindow''。该对象的构造函数是
传递了const char *" Console"
没有什么奇怪的...就像你说的,我们可以告诉你更喜欢标题。
雅克。
Looks like it''s declaring an object called ''console'' with type
''CL_ConsoleWindow''. The constructor of that object is being
passed the const char* "Console".
Nothing odd there... Like you say, we could tell you more with headers.
Jacques.
Jacques Labuschagne< ja ***** @ clawshrimp .COM>写于2004年1月7日星期三
12:03:25 GMT in comp.lang.c ++:
Jacques Labuschagne <ja*****@clawshrimp.com> wrote on Wed, 07 Jan 2004
12:03:25 GMT in comp.lang.c++:
看起来它正在声明一个名为的对象''console''类型为
''CL_ConsoleWindow''。该对象的构造函数正在传递const char *" Console"。
Looks like it''s declaring an object called ''console'' with type
''CL_ConsoleWindow''. The constructor of that object is being
passed the const char* "Console".
是的,但它没有名字?抱歉,但我对C ++缺乏经验。
Yes, but doesn''t it have a name? Sorry but I''m inexperienced with C++.
2004年1月7日12:37:51 GMT,Sier< no ********** @ somewhere.com>写道:
On 7 Jan 2004 12:37:51 GMT, Sier <no**********@somewhere.com> wrote:
Jacques Labuschagne< ja ***** @ clawshrimp.com>写于2004年1月7日星期三
12:03:25 GMT in comp.lang.c ++:
Jacques Labuschagne <ja*****@clawshrimp.com> wrote on Wed, 07 Jan 2004
12:03:25 GMT in comp.lang.c++:
看起来它正在声明一个名为''console'的对象'与类型
''CL_ConsoleWindow''。该对象的构造函数正在传递const char *" Console"。
Looks like it''s declaring an object called ''console'' with type
''CL_ConsoleWindow''. The constructor of that object is being
passed the const char* "Console".
是的,但它没有名字?抱歉,但我对C ++缺乏经验。
Yes, but doesn''t it have a name? Sorry but I''m inexperienced with C++.
什么没有名字?声明的对象(假设代码为
雅克说)有名称控制台。
Tom
C ++ FAQ: http://www.parashift.com/c++-faq- lite /
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
这篇关于这段代码是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!