在c#上需要帮助 [英] need help on c#

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

问题描述

不确定我做错了什么。我还是新手编程

not sure what i did wrong. im still new to programming

推荐答案


不确定我是什么做错了。

not sure what i did wrong.

大概这个:


letter1 = char.Parse(Console .ReadLine());

            letter1 = char.Parse(Console.ReadLine());

应该是:

letter = char.Parse(Console.ReadLine( ));

            letter = char.Parse(Console.ReadLine());

我很惊讶你没有得到编译器警告告诉你你正在使用"字母"没有给它分配东西。

I'm surprised you didn't get a compiler warning telling you you're using "letter" without assigning something to it.

Dave


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

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