将输入的string中"yes" 改为 "no"
来源:互联网 发布:mac轻淘客插件 编辑:程序博客网 时间:2024/05/23 19:19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Csharp
{
classProgram
{
static void Main(string[] args)
{
string myString = Console.ReadLine();
string [] myWords = myString.Split(' ');
foreach (string word in myWords)
Console.Write("{0} ", (word == "yes") ? "no" : word);
Console.WriteLine();
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Csharp
{
}
0 0
- 将输入的string中"yes" 改为 "no"
- 将输入的string中的"yes" 改为"no"
- Exercises 3.17 输入一段文字到string类型的vector中,并将其改为大写
- 将QMessageBox对话框中按钮的“Yes/No”转换成中文的“是/否”
- 【BASH】如何得到用户输入的YES或NO
- 将QMessageBox的Yes和No按钮翻译成中文
- 输入一个字符串将其中的大写字母改为 小写字母 ,小写改为大写字母
- 执行shell脚本时,遇到需要输入yes/no的时候,怎么自动化完成输入呢?
- linux中使用ssh或scp时如何跳过RSA key fingerprint输入yes/no
- linux中使用ssh或scp时如何跳过RSA key fingerprint输入yes/no
- linux中使用ssh或scp时如何跳过RSA key fingerprint输入yes/no
- 自己的YES OR NO
- 将图纸中所有的块的名称改为大写
- 将symbian中GUI的exe程序改为dll程序
- VS2013中,将Qt的GUI程序改为控制台程序
- latex中如何将表格的Table1改为表1
- CRT连接linux,新建的用户“oralce”可以登陆了,root就登录不了了。 /etc/ssh/sshd_config 找到 PermitRootLogin no 改为yes
- WINDOWS 批处理 中途输入参数,如YES OR NO 等
- 用反向迭代器和普通迭代器逆序输出…
- list版本删除重复元素
- Helper2416:裸机第一步之点亮LED
- 读取文件, 统计字符,忽略大小写
- 读入一个string序列和一个int序列,…
- 将输入的string中"yes" 改为 "no"
- 不用加减乘除做加法
- multiset<string>与vector<string>的比较
- 用insert重写单词计数程序
- 输入孩子的姓名, 用map存储,&…
- struts2执行原理简易代码
- Flex 接口定义
- ios search bar的bug
- 如何美化你的Eclipse