huakaiyueluo

导航

2013年11月14日 #

用c#实现单链表(程序代码已经验证,完全正确)

摘要: 1.程序的大致结构如下图:2.下面依次列出各个类的代码①ILISTDs.cs 这是一个接口类,列出单链表的方法using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 单链表{ public interface IListDs { int GetLength();//求长度 void Clear();//清空操作 bool IsEmpty();//判断线性表是否为空 ... 阅读全文

posted @ 2013-11-14 23:58 huakaiyueluo 阅读(11705) 评论(13) 推荐(2) 编辑

c#调用语音功能

摘要: 转自http://www.cnblogs.com/Hans2Rose/p/WeatherSpeaker.html.Net里面自带了一个语音类库:System.Speech,调用系统的语音功能,就能实现string到语音的转换,很简单(记得先把电脑音量调大一下)://AddSystem.SpeechreferencefirstusingSystem.Speech.Synthesis;varreader=newSpeechSynthesizer();reader.SpeakAsync("I'm a programer. Hello, world!"); 阅读全文

posted @ 2013-11-14 19:05 huakaiyueluo 阅读(1546) 评论(0) 推荐(0) 编辑