array<System::String ^> 如何成为标准C++?
How is array<System::String ^> standard 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基于C++,经过修改,可以混合编译本机代码和用于Microsoft公共语言基础结构(CLI)的代码。它取代了微软的C++托管扩展,后者旨在增强C++的一致性。
相关文章:
- 使用CMake检测支持的C++标准
- 如何理解C++标准N3337中的expr.const.cast子句8
- "throw expression code" 1e7 >返回 d 是什么?投掷标准::overflow_error( "too big" ) : d;意味 着?
- 编译标准库类型
- 函数何时会在c++中包含stack_Unwind_Resume调用
- 标准是否使用多余的大括号(例如 T{{{10}}})定义列表初始化?
- Python中的for循环与C++有何不同
- 将寄存器设计成可由C和C++访问的外设的最佳实践
- 编译器如何在使用SFINAE的函数和标准函数之间确定两者是否可行
- 将数字打印成文字
- 用c++把小数点转换成八进制
- 标准对此指向成员函数类型模板参数有何说明?是我的代码有误,还是 MSVS 16.6 有问题?
- C++17标准对在nullptr上调用delete有何规定
- 成功地编译成格式的程序是符合标准的
- 有没有任何标准的算法来进行向量元素的成对比较
- 关于在矢量上调用clear如何改变容量,标准有何规定
- 什么是"Clean C",它与标准 C 有何不同?
- 内联汇编汇编成标准的c++代码
- C++标准对堆栈溢出有何规定
- 编程 Arduino 与标准 C 有何不同