开发者

valid fragment of this code in c++

what is valid form of this code in visual c++? this doe开发者_如何转开发s not work i took it from microsoft

using namespace System;
int main() {
   Console::WriteLine(__CLR_VER);
}


I think this is a good standard C++ approximation:

#include <iostream>
int main() {
    std::cout << __cplusplus << std::endl;
}


To print text on console you can use:

cout << _("This is my text") << endl;

or

_tprintf(_T("This is my text"));

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜