首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:C# 教程
TRY RUN / 在线示例
C# 教程 运行实例
C# 教程 运行实例
源代码
运行
using System; namespace StringApplication { class StringProg { static void Main(string[] args) { string str = "Last night I dreamt of San Pedro"; Console.WriteLine(str); string substr = str.Substring(23); Console.WriteLine(substr); Console.ReadKey() ; } } }
运行结果
<html><head></head><body>Last night I dreamt of San Pedro<br>San Pedro<br></body></html>