當前位置:首頁 » 操作系統 » 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小時第二次違反繼續,沒有上限,電子抓拍,秋後算賬,當場被抓立即處罰,扣留車輛直至可以通行才放你走。

熱點內容
市裡煤炭資源配置是什麼意思 發布:2025-05-14 01:52:23 瀏覽:306
c刪除一行資料庫 發布:2025-05-14 01:50:53 瀏覽:74
sql輔助 發布:2025-05-14 01:50:46 瀏覽:324
為什麼要限制上傳速度 發布:2025-05-14 01:45:07 瀏覽:619
kindeditor上傳圖片絕對路徑 發布:2025-05-14 01:06:27 瀏覽:276
廣數g96編程實例 發布:2025-05-14 01:01:56 瀏覽:912
安卓手機如何做一個小程序 發布:2025-05-14 01:01:51 瀏覽:969
linux怎麼訪問外網 發布:2025-05-14 01:00:24 瀏覽:953
玩dnf什麼配置不卡卡 發布:2025-05-14 00:57:02 瀏覽:807
android優秀項目源碼 發布:2025-05-14 00:54:58 瀏覽:206