c++ - array<System::String ^> 标准 C++ 是怎样的?

标签 c++ macos visual-studio visual-studio-2010 visual-c++

在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/

相关文章:

c++ - 如何使用 Visual Studio 2013 构建 Boost 1.55?

ios - 自定义可折叠 View

c# - 如何使用 Microsoft.Office.Interop.Word 在某些 Word 文档中查找和修改文本框?

c++ - Microsoft Visual Studio 发现我的所有 CUDA 设备端函数都存在错误

c++ - 链接器说 _IsolationAwareLoadLibrary 未定义 - 有什么想法吗?

c++ - boost::multiprecision:如何将 mpz_int 变量转换为 gmp_int?

c++ - 初始化没有复制构造函数的成员聚合类型

c++ - 获取字符串流对象中字符串的地址

macos - MKMapAnnotationManager 未将自身删除为 MKAnnotation 的观察者

python - Mac OS X - 环境错误 : mysql_config not found