在Microsoft Visual Studio 2010中选择创建一个新的控制台应用程序后,它为我创建了以下源文件:
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Hello World");
return 0;
}
那些脱字符 (^) 是什么?
它看起来不像标准 C++。
它们不是二合字母。
尽管如此,它的构建没有任何错误。
最佳答案
它不是标准的 C++,它是由 Microsoft 创建的一种语言,称为 “C++/CLI”。
在 StackOverflow 上,如果您对此语言有疑问,请使用 c++-cli
标签。以下是标签信息的内容:
C++/CLI is based on C++, modified to allow compilation of a mixture of native code and code for Microsoft's Common Language Infrastructure (CLI). It replaces Microsoft's Managed Extensions for C++, which aimed for stronger C++ conformance.
关于c++ - array<System::String ^> 标准 C++ 是怎样的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33617924/