需要帮助解决问题 [英] Need help with an issue

查看:54
本文介绍了需要帮助解决问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,所以在我开始之前我想说我很抱歉没有成为C#精英。


我还想说我会喜欢输入:


print(" Hello,world!")


< g class =" gr_ gr_56 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace"数据-GR-ID =" 56" ID = QUOT; 56">比< / g取代;输入:


使用System;

使用System.Collections.Generic;

使用System;

使用System.Text.RegularExpressions;



命名空间HelloWorld

{

  &NBSP;公共课程计划

  &NBSP; {

  &NBSP; &NBSP; &NBSP; public static void Main(string [] args)

  &NBSP; &NBSP; &NBSP; {

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; //你的代码就在这里

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; Console.WriteLine("Hello,world!");

  &NBSP; &NBSP; &NBSP; }¥b $ b  &NBSP; } b $ b}


话虽如此,我应该很清楚我只是一个初学者。


I选择Lua作为我的第一个编程语言同样明显的原因是它简单易学。


所以我按照教程并成功安装了Lua  5.3.5。 (Luarocks拒绝相信5.3.5是一个有效的目录,但有点糟透了,无论如何。)


因为我计划迟早学习C#,所以我安装了visual studio。


我还安装了3个扩展程序,帮助我使用Lua 它们被称为:Code Runner,NPL_LuaLanguageService和Syntax Highlighting Pack。


所以我试着输入:print("Hello,world!")然后用CTRL + ALT + N来运行它。


(我感觉很漂亮这一部分,如果有人可以指导我完成一个新事物的执行过程,那就是执行非常好的代码。)


只有遇到cmd窗口才能告诉我:" ; Lua:无法打开你好:没有这样的文件或目录"


考虑到我必须要做的所有事情,试图让这项工作只为它而不是,这是非常令人沮丧的,这就是为什么我'我在这里祈祷有人知道如何帮助我,他们愿意帮助教我像我这样的noobie。


P.S。我做了很多研究,发现视觉工作室代码可以帮助我,但是,我已经安装了视觉工作室,这样可以做到它可以做的一切,甚至更多。虽然它可能是一个不同的过程。

解决方案

Hi Toxic_Cookie,


欢迎来到MSDN论坛。


你的VS版本和你当前的项目类型是什么?


如果是C#控制台项目,你想在CMD提示中打印"Hello,world!",我们需要如下代码:



< span style ="font-size:11.0pt; font-family:'Calibri ',sans-serif">如果您想在VS中使用Lua语言,请尝试安装此扩展程序:

Lua的Visual Studio扩展
并确保您的VS版本是VS 2015.


有关详细的Lua开发问题,请重定向到这个适当的论坛:
https://github.com/Microsoft/VSLua/issues
  寻求更专业的支持,因为我们的论坛是讨论VS IDE,谢谢你的理解
J


 



最好的问候,


萨拉


Alright so before I begin I would like to say that I'm sorry for not being a C# elitist.

I'd also like to say that I'd prefer to type out:

print("Hello, world!")

<g class="gr_ gr_56 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="56" id="56">than</g> to type out:

using System;
using System.Collections.Generic;
using System;
using System.Text.RegularExpressions;

namespace HelloWorld
{
    public class Program
    {
        public static void Main(string[] args)
        {
            //Your code goes here
            Console.WriteLine("Hello, world!");
        }
    }
}

With that being said, it should be clear that I'm just a beginner.

I have chosen Lua as my first programming language for the equally obvious reason that it's simple and easy to learn.

So I followed a tutorial and successfully installed Lua 5.3.5. (Luarocks refused to believe that 5.3.5 was a valid directory though so that kinda sucks but, whatever.)

Since I do plan on learning C# sooner or later I have visual studio installed.

I also installed 3 extensions that aid me in using Lua they're called: Code Runner, NPL_LuaLanguageService, and Syntax Highlighting Pack.

So I tried to just type in: print("Hello, world!") and then did CTRL+ALT+N to run it as you do.

(I felt pretty iffy about this part so if someone could walk me through the exact process of making a new thing to execute code that'd be great.)

Only to be met with the cmd window telling me: "Lua: cannot open Hello: No such file or directory"

Considering everything I had to do to try and make this work only for it not to, is quite frustrating which is why I'm on here praying somebody knows how to help me and that they're willing to help teach a noobie like me.

P.S. I did do a lot of research and found that visual studio code could help me but, I've already got visual studio installed so surely that can do everything it can and more. Although it could be a different process.

解决方案

Hi Toxic_Cookie,

Welcome to the MSDN forum.

What’s your VS version and your current project type?

If it is a C# Console project and you want to print the "Hello, world!" in the CMD prompt, we need the code as below:

If you want to use the Lua language in VS, please try to install this extension: Visual Studio Extension for Lua and make sure your VS version is VS 2015.

For the detail Lua development issues, please redirect to this appropriate forum: https://github.com/Microsoft/VSLua/issues  to seek for a more professional support, since our forum is to discuss the VS IDE, thank you for your understanding J

 

Best regards,

Sara


这篇关于需要帮助解决问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆