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"));
精彩评论