📜  c 与 c - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:54.751000             🧑  作者: Mango

代码示例3
1.C++ compiles into machine code, while C# compiles to CLR, which is interpreted by ASP.NET.
2.C++ requires you to handle memory manually, but C# runs in a virtual machine which can automatically handle memory management.
3.C# does not use pointers, while C++ can use pointers anywhere.
4.C++ can be used on any platform, though it was originally designed for Unix-based systems. C# is standardized but is rarely used outside of Windows environments.
5.C++ can create stand-alone and console applications. C# can create a console, Windows, ASP.NET, and mobile applications, but cannot create stand-alone apps.