Reputation: 37834
After choosing to create a new console application in Microsoft Visual Studio 2010, it created the following source file for me:
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Hello World");
return 0;
}
What are those caret (^) characters?
It doesn't look like Standard C++.
They are not digraphs.
Nevertheless, it builds without any errors.
Upvotes: 2
Views: 3178
Reputation: 5741
It's not standard C++, it's a language created by Microsoft called “C++/CLI”.
On StackOverflow, use the c++-cli
tag if you have questions about this language. Here's what the tag info says:
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.
Upvotes: 10