当前位置:首页 » 操作系统 » jwe算法

jwe算法

发布时间: 2022-06-28 11:15:28

A. 求两道C#的课后题目答案~

第一题:
using System;
using System.Collections.Generic;
using System.Text;

namespace Bai
{
class Program
{
static void Main(string[] args)
{
string[] article = { "the", "a", "one", "some", "any" };
string[] noun = { "boy", "girl", "dog", "town", "car" };
string[] verb = { "drove", "jumped", "ran", "walked", "skipped" };
string[] preposition = { "to", "from", "over", "under", "on" };

Random rnd = new Random();
string sen = string.Empty;
for (int i = 0; i < 10; i++)
{
sen += article[rnd.Next(0, 5)] + " ";
sen += noun[rnd.Next(0, 5)] + " ";
sen += verb[rnd.Next(0, 5)] + " ";
sen += preposition[rnd.Next(0, 5)] + " ";
sen += article[rnd.Next(0, 5)] + " ";
sen += noun[rnd.Next(0, 5)] + ".";

Console.Write(char.ToUpper(sen[0]));
Console.WriteLine(sen.Substring(1));

sen = string.Empty;
}

Console.ReadKey(true);
}
}
}

第二题

private void button4_Click(object sender, EventArgs e)
{
string ss = "abcdeftghwefjweiobbbb"; //你需要的话就自己输入
string sa = ss.Substring(0, 1);
ss = ss.Substring(0, ss.Length -1);
ss += sa+"ay";
MessageBox.Show(ss);
}

B. 唐山限号怎么处罚

违反限行规定罚款100元,不扣分,累积4小时第二次违反继续,没有上限,电子抓拍,秋后算账,当场被抓立即处罚,扣留车辆直至可以通行才放你走。

热点内容
公共场合ftp 发布:2024-11-16 01:28:20 浏览:226
福特悠享版有哪些配置 发布:2024-11-16 01:22:06 浏览:593
id加密卡 发布:2024-11-16 01:20:26 浏览:359
我的世界极致画质光影什么配置 发布:2024-11-16 01:15:13 浏览:494
子账号的密码是多少 发布:2024-11-16 01:12:41 浏览:818
反编译后不能打开工程 发布:2024-11-16 01:05:29 浏览:773
酷狗缓存文件在哪里 发布:2024-11-16 00:57:43 浏览:150
升级鸿蒙后怎么删除安卓 发布:2024-11-16 00:54:26 浏览:881
亚马逊上传工具 发布:2024-11-16 00:49:10 浏览:354
头脑王者源码 发布:2024-11-16 00:47:28 浏览:348