<bdo id='5qaEb'></bdo><ul id='5qaEb'></ul>

<small id='5qaEb'></small><noframes id='5qaEb'>

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

        来自 USB 的 C++ 和 Lua

        C++ and Lua from USB(来自 USB 的 C++ 和 Lua)
              <tbody id='x1umd'></tbody>
          • <i id='x1umd'><tr id='x1umd'><dt id='x1umd'><q id='x1umd'><span id='x1umd'><b id='x1umd'><form id='x1umd'><ins id='x1umd'></ins><ul id='x1umd'></ul><sub id='x1umd'></sub></form><legend id='x1umd'></legend><bdo id='x1umd'><pre id='x1umd'><center id='x1umd'></center></pre></bdo></b><th id='x1umd'></th></span></q></dt></tr></i><div id='x1umd'><tfoot id='x1umd'></tfoot><dl id='x1umd'><fieldset id='x1umd'></fieldset></dl></div>
          • <small id='x1umd'></small><noframes id='x1umd'>

            <tfoot id='x1umd'></tfoot>
            <legend id='x1umd'><style id='x1umd'><dir id='x1umd'><q id='x1umd'></q></dir></style></legend>
              <bdo id='x1umd'></bdo><ul id='x1umd'></ul>

                • 本文介绍了来自 USB 的 C++ 和 Lua的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  所以大约 2 周前,我开始学习 C++ 和 Lua,我希望能够:

                  So about 2 weeks ago, I started learning C++ and Lua, and I would like to be able to:

                  1. 编译 C++ 代码(如果我也有一个 C 编译器,那将是一个不错的奖励,因为这是我要学习的语言列表中的下一个)
                  2. 解释(这是正确的术语吗?)Lua,和
                  3. 从我的 USB 驱动器完成所有这些操作,无需从 Internet 下载任何内容或更改路径变量.(我将主要在学校的计算机上工作.)

                  顺便说一句,我已经爱上了 Sublime Text 2(它的便携式版本已经在我的 USB 驱动器上).如果绝对有必要,我会不使用它,但我更希望无论走到哪里都能使用它.

                  As a side note, I have fallen in love with Sublime Text 2 (the portable version of which is already on my usb drive). If it's ABSOLUTELY necessary, I'll make do without it, but I would prefer being able to use it wherever I go.

                  请耐心等待,正如我之前提到的,我刚刚开始学习如何编程,我对事情的工作原理知之甚少.我见过类似的问题,但由于我的知识有限,它们似乎从来没有帮助过我,所以请不要像我在本网站上看到的其他人一样无情地结束我的问题.

                  Please be patient with me, as i have mentioned before, I just started learning how to program, and I have little to no knowledge on how things work. I have seen similar questions, but they never seem to help me much due to my limited knowledge, so PLEASE don't mercilessly close my question like others I have seen on this site.

                  先谢谢你!

                  推荐答案

                  我最近添加了一个页面 在 Lua WIKI(信息的重要来源)上可能会对您有所帮助.这是一个完整的新手教程,介绍如何仅使用免费和便携式"(在可以放在 USB 驱动器上"的意义上)工具从源代码构建 Lua.它适用于 Windows 操作系统用户.不要忘记查看官方入门页面和Lua 主站点 以及!

                  I recently added a page on Lua WIKI (great source of info) that may help you. It is a tutorial for complete newbies on how to build Lua from the sources using only free and "portable" (in the sense of "can be put on usb drives") tools. It is meant for Windows OS users. Do not forget to check the official getting started page and the main Lua site as well!

                  你不能下载任何东西的事实是非常严格的(你怎么能得到一个免费的编译器呢?).无论如何,正如greatwolf 提到的那样,TDM-GCC 是适用于 32 位 x86 PC 的出色 C/C++ 编译器.它也被修补为完美的便携":我通常从便携式 USB HD 中使用它.我提到的教程向您展示了如何下载和安装".

                  The fact that you cannot download anything is quite restrictive (how could you get a free compiler then?). Anyway as greatwolf mentioned TDM-GCC is a great C/C++ compiler for 32 bit x86 PCs. It is also patched to be perfectly "portable": I usually use it from a portable USB HD. The tutorial I mentioned shows you how to download it and "install it".

                  请注意,尽管您在学校的系统管理员可能阻止了您全局更改路径变量的能力,但您可以使用简单的批处理文件(也称为 Windows 命令外壳脚本)为单个进程(启动的程序")设置它.

                  Note that although your sysadmin at school may have blocked your ability to change the path variable globally, you can set it for individual processes ("launched programs") using simple batch files (aka Windows command shell scripts).

                  使用以下内容创建一个名为myshell.cmd"的文件:

                  Create a file named "myshell.cmd" with this content:

                  @set path=%path%;c:	hepath	omyapp&cmd /K
                  

                  c: hepath omyapp 部分必须是应用程序可执行文件所在目录(文件夹)的实际路径.当您双击 myshell.cmd 时,将打开一个黑框(假设您的系统管理员没有阻止此功能),您可以在其中调用应用程序可执行文件.

                  the part c: hepath omyapp must be the actual path of the directory (folder) where the application executable is placed. When you double-click on myshell.cmd a black box will open (assuming your sysadmin hasn't blocked this feature) where you can invoke the app executables.

                  例如,如果您在该目录内的 c:myprogsGCC 中安装"了 TDM_GCC 编译器,您将找到一个名为 bin 的子目录.该子目录必须放在路径中,因此您的 myshell.cmd 文件将如下所示:

                  For example, if you "installed" the TDM_GCC compiler in c:myprogsGCC inside that dir you will find a subdir named bin. That subdir must be put in the path, so your myshell.cmd file will be like this:

                  @set path=%path%;c:myprogsGCCin&cmd /K
                  

                  然后在我提到的黑匣子"中,您可以调用编译器输入:

                  Then in the "black box" I mentioned you can invoke the compiler typing:

                  gcc --help
                  

                  至于你的学习路径,如果你打算同时学习 Lua 和 C 或 C++,我会建议你尝试 C 而不是 C++.C++ 有更多的高级"特性,但它是巨大的,虽然 Lua 可以嵌入 C++ 代码中使用(当然这无论如何这是一个高级主题),但它被设计为直接嵌入到 C 应用程序中(它有一个API 符合 C 约定),因此对于初学者来说,路径 Lua --> C --> C+Lua 可能会更容易一些.C 本身虽然很难掌握,但它是一种相当简约的语言,因此需要消化的信息并不多.

                  As for your learning path, if you intend to learn both Lua and C or C++, I will advice you to try C instead of C++. C++ has more "high-level" features, but it is huge and although Lua can be used embedded in C++ code (of course this is an advanced topic anyway), it is designed to be directly embedded in a C application (it has an API which conforms to C conventions), so for a beginner probably the path Lua --> C --> C+Lua would be a bit easier. C in itself, although difficult to master, is a rather minimalistic language, so the information to digest about it is not that big.

                  不要让您气馁,但 IMO C 和 C++ 都不是绝对初学者最合适的语言(它们有很多陷阱,几乎没有初学者的安全网").但这取决于您,这在很大程度上取决于您的技能、奉献精神和动力;-)

                  Not to discourage you, but IMO both C and C++ are not the most suitable languages for absolute beginners (they are plenty of pitfalls and have almost no "safety nets" for beginners). But that's up to you, it heavily depends on your skills, dedication and motivation ;-)

                  希望所有这些都会有所帮助.

                  Hope all this helps.

                  这篇关于来自 USB 的 C++ 和 Lua的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                  Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                  Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                  Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                  How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                  Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)

                      • <bdo id='lT8J9'></bdo><ul id='lT8J9'></ul>
                          <tfoot id='lT8J9'></tfoot>

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

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