06 2013 档案
摘要:例如有一个字符串“Google Nexus 4 mobile phone”,你要搜索“Google”和“Nexus”,那么应该返回TRUE。 static void Main(string[] args) { string[] strArr = { "Nexus","Google"}; string str = "Google Nexus 4 mobile phone"; Console.Write(MatchKeyWords(str, strArr)); } static...
阅读全文
摘要:一副扑克有52张牌,那么使用数组存储这52张牌,然后打乱这些牌。using System;using System.Collections.Generic;using System.Collections;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Poker{ class Program { static void Main(string[] args) { ArrayList al = new ArrayList(); ...
阅读全文