c#字符串类型的入队、出队
2014-10-16 15:28
148 查看
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] s = { "12", "+CBF-", "Y%7*", "gdYudb/" }; Queue<string> q = new Queue<string>(); for (int i = 0; i < s.Length; i++) { q.Enqueue(s[i]); } string result = ""; while (q.Count > 0) { result += q.Dequeue(); } Console.WriteLine(result); Console.Read(); } } }
相关文章推荐
- 判断C#中的字符串是否是数字,如果是转换成int类型
- C# 2005如何根据类型声明的字符串反射创建泛型(Generic)对象
- C# 控制台输入输出非字符串类型数据的方法[进制数字转换为八进制数字]
- C# string 拥有值类型特点的特殊引用类型 “字符串具有恒等性”
- C# 十六进制字符串与数值类型之间转换
- C# string格式的日期时间字符串转为DateTime类型的方法
- C#类型转换,可以转换多个以英文逗号分隔的字符串为常用的基本类型或 Guid 类型
- 判断C#中的字符串是否是数字,如果是转换成int类型
- dhl:枚举的另一种用法:C#中字符串和枚举类型互转
- C# 十六进制字符串与数值类型之间转换
- 关于C#中货币类型和数值类型、字符串类型的转化和在DataGridView中的显示问题:
- C#读取字符串类型XML
- C# 十六进制字符串与数值类型之间转换
- C#各种数据类型转json字符串(转贴)
- .NET/C# 中的字符串类型
- C#中@对于字符串类型的作用
- C#中@对于字符串类型的作用
- C#实现字符串转换到16进制byte类型
- C# 枚举类型转换字符串 Enum to string,枚举转换为下拉菜单 Enum DropDownList
- 在十六进制字符串与数值类型之间转换 C# 编程指南