K3

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2007年4月16日

摘要: 1/**////<summary>2///一个简单的堆栈3///</summary>4publicclassmyStack5{6privatemyNodetopNode=null;7privateintcount=0;89/**////<summary>10///出栈11///</summary>12///<returns></re... 阅读全文
posted @ 2007-04-16 18:08 K3 阅读(435) 评论(0) 推荐(0) 编辑

摘要: 1/**//// 2 /// 去除字符串中相邻两个字符的重复 3 /// 4 /// exp. 5 /// abb -> ab 6 /// abbccaabbcc -> abcabc 7 /// aaabbb -> ab 8 /// 9 /// 10... 阅读全文
posted @ 2007-04-16 15:21 K3 阅读(1421) 评论(1) 推荐(0) 编辑

摘要: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 string str1 = ""; 6 string str2 = "中"; 7 8 Console.WriteLine(str1.IndexOf(str2)); 9 ... 阅读全文
posted @ 2007-04-16 13:51 K3 阅读(880) 评论(0) 推荐(0) 编辑

摘要: 1class Program 2 { 3 static void Main(string[] args) 4 { 5 myNode firstNode = new myNode(); 6 firstNode.Value = 0; 7 8 //创建一个单向链表 9 myNode... 阅读全文
posted @ 2007-04-16 07:04 K3 阅读(650) 评论(0) 推荐(0) 编辑