开发者

valid fragment of this code in c++

开发者 https://www.devze.com 2023-01-13 04:16 出处:网络
what is valid form of this code invisual c++? this doe开发者_如何转开发s not work i took it from microsoft

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

精彩评论

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