C#
Charlies.
这个作者很懒,什么都没留下…
展开
-
查找字符串中的子串
假设有一个字符串“D:\C#程序设计\实验3\MyFile.TXT “取出路径中的文件名“MyFile.TXT” 示例代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 {原创 2016-03-18 16:41:43 · 649 阅读 · 0 评论 -
实验StringBuilder类实现字符反转
如题: (1)将String转换成Char; (2)使用StringBuilder类 代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program原创 2016-03-18 17:04:06 · 740 阅读 · 0 评论 -
判断字符串是否为”回文“
判断str所指字符串是否是”回文“(即顺度和逆读是相同的字符) 使用C#编写结果如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2._2 {原创 2016-03-12 09:41:20 · 711 阅读 · 0 评论 -
输入一个整数,将其个位数字颠倒顺序后输出
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2._4 { class Program { static void Main原创 2016-03-12 11:00:03 · 4092 阅读 · 0 评论 -
DateTimel类和TimeSpan类
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MathClass { class Program { static void Main(string[] arg原创 2016-03-27 10:13:55 · 467 阅读 · 0 评论 -
ArrayList类
ArrayList类是动态数组,在其中的数据中,成员都为object类型,可以存放任意类型的数据 using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespa原创 2016-03-27 10:30:00 · 440 阅读 · 0 评论