如何创建一种c#console应用程序,其中bool值用于检测如果在控制台中写入某个单词 [英] How to make a type of c# console application where a bool value is used to detect If a certain word is written in the console

查看:102
本文介绍了如何创建一种c#console应用程序,其中bool值用于检测如果在控制台中写入某个单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗯,我知道代码的基础知识。比如如何使用Console.WriteLine和ReadLine。我知道如何使用console.readline设置字符串值。我已经创建了一个程序,要求输入名称,性别和年龄,然后显示它。但我真正想知道的是如何制作一个程序,告诉你一些类似什么是神奇的词?的程序。你必须猜测。并且我想使用bool值来检测某个单词是否类似草莓类型。然后它告诉你一个帐户的密码或类似的东西。

但是当我试图搜索它并找到它的教程时,什么都没有。绝对没有。这一切都有复杂的废话,比如c<} |£\€\ $ / 9!$ 299不是那么做$ :()| \ | *]!| +这样的东西。如果你知道我可以在哪里找到教程,请帮忙。

Well, I know the basics of code. like how to use Console.WriteLine and ReadLine. I know how to set a string value using console.readline. I've already created a program that asks for a name, gender and age and then displays it. But what I really want to know is how to make a program that tells you something like "What's the magic word?" And you have to guess. And I want to use a bool value to detect if a certain word is typed like "strawberry" and then it tells you a password to an account or something like that.
But when I tried to search it and find a tutorial on it, there was nothing. Absolutely nothing. It all had complicated crap like the bool of c<}|£\€\$/9!$299 is not then do $:()|\|*]!|+ and stuff like that. if you know anywhere where I can find a tutorial to that, please help.

推荐答案

/ 9!


299不是然后做


:()| \ | *]!| +等等。如果你知道我可以在哪里找到教程,请帮忙。
:()|\|*]!|+ and stuff like that. if you know anywhere where I can find a tutorial to that, please help.


这篇关于如何创建一种c#console应用程序,其中bool值用于检测如果在控制台中写入某个单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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