<legend id='ayHFv'><style id='ayHFv'><dir id='ayHFv'><q id='ayHFv'></q></dir></style></legend>

      • <bdo id='ayHFv'></bdo><ul id='ayHFv'></ul>
    1. <i id='ayHFv'><tr id='ayHFv'><dt id='ayHFv'><q id='ayHFv'><span id='ayHFv'><b id='ayHFv'><form id='ayHFv'><ins id='ayHFv'></ins><ul id='ayHFv'></ul><sub id='ayHFv'></sub></form><legend id='ayHFv'></legend><bdo id='ayHFv'><pre id='ayHFv'><center id='ayHFv'></center></pre></bdo></b><th id='ayHFv'></th></span></q></dt></tr></i><div id='ayHFv'><tfoot id='ayHFv'></tfoot><dl id='ayHFv'><fieldset id='ayHFv'></fieldset></dl></div>
      <tfoot id='ayHFv'></tfoot>
    2. <small id='ayHFv'></small><noframes id='ayHFv'>

      托管 C++ 和 C++ 之间的区别

      时间:2023-06-03
      <i id='P8pnz'><tr id='P8pnz'><dt id='P8pnz'><q id='P8pnz'><span id='P8pnz'><b id='P8pnz'><form id='P8pnz'><ins id='P8pnz'></ins><ul id='P8pnz'></ul><sub id='P8pnz'></sub></form><legend id='P8pnz'></legend><bdo id='P8pnz'><pre id='P8pnz'><center id='P8pnz'></center></pre></bdo></b><th id='P8pnz'></th></span></q></dt></tr></i><div id='P8pnz'><tfoot id='P8pnz'></tfoot><dl id='P8pnz'><fieldset id='P8pnz'></fieldset></dl></div>

        <bdo id='P8pnz'></bdo><ul id='P8pnz'></ul>
        <tfoot id='P8pnz'></tfoot>

              1. <legend id='P8pnz'><style id='P8pnz'><dir id='P8pnz'><q id='P8pnz'></q></dir></style></legend>

                <small id='P8pnz'></small><noframes id='P8pnz'>

                  <tbody id='P8pnz'></tbody>
                本文介绍了托管 C++ 和 C++ 之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                第二个问题是:我什么时候使用这两个?

                The second question is: When do I use what of these two?

                推荐答案

                如果未指定,C++ 是非托管 C++,编译为机器码.在非托管 C++ 中,您必须手动管理内存分配.

                When not specified, C++ is unmanaged C++, compiled to machine code. In unmanaged C++ you must manage memory allocation manually.

                托管 C++ 是 Microsoft 发明的一种语言,可编译为由 .NET Framework 运行的字节码.它主要使用与 C++ 相同的语法(因此得名),但编译方式与 C# 或 VB.NET 相同;基本上只有语法变化,例如使用 '->' 指向对象的成员(而不是 C# 中的 '.'),使用 '::' 表示命名空间等

                Managed C++ is a language invented by Microsoft, that compiles to bytecode run by the .NET Framework. It uses mostly the same syntax as C++ (hence the name) but is compiled in the same way as C# or VB.NET; basically only the syntax changes, e.g. using '->' to point to a member of an object (instead of '.' in C#), using '::' for namespaces, etc.

                托管 C++ 旨在简化从经典 C++ 到 .NET Framework 的过渡.它不打算用于启动新项目(首选 C#).

                Managed C++ was made to ease transition from classic C++ to the .NET Framework. It is not intended to be used to start new projects (C# is preferred).

                这篇关于托管 C++ 和 C++ 之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:您如何减少 Visual C++ 项目(本机 C++)的编译时间和链接时间? 下一篇:/Ox 和/O2 编译器选项之间有什么区别?

                相关文章

                  <bdo id='RU7UR'></bdo><ul id='RU7UR'></ul>

                <legend id='RU7UR'><style id='RU7UR'><dir id='RU7UR'><q id='RU7UR'></q></dir></style></legend>
              2. <small id='RU7UR'></small><noframes id='RU7UR'>

                <i id='RU7UR'><tr id='RU7UR'><dt id='RU7UR'><q id='RU7UR'><span id='RU7UR'><b id='RU7UR'><form id='RU7UR'><ins id='RU7UR'></ins><ul id='RU7UR'></ul><sub id='RU7UR'></sub></form><legend id='RU7UR'></legend><bdo id='RU7UR'><pre id='RU7UR'><center id='RU7UR'></center></pre></bdo></b><th id='RU7UR'></th></span></q></dt></tr></i><div id='RU7UR'><tfoot id='RU7UR'></tfoot><dl id='RU7UR'><fieldset id='RU7UR'></fieldset></dl></div>

                  1. <tfoot id='RU7UR'></tfoot>